From ed7ba5f79516cde7b84a23ddb68ce299c480b95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 22 Jan 2020 13:27:00 +0100 Subject: [PATCH] add drone config --- .drone.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ae411a7 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,19 @@ + kind: pipeline + type: docker + name: default + + steps: + - name: shellcheck + image: python:3 + commands: + - apt update && apt upgrade -y && apt install -y shellcheck + - pip3 install pylint bandit mccabe + - for file in $(find . -type f -name \"*.sh\"); do shellcheck --format=gcc $file; done; + - find . -name "*.py" -exec python3 -m py_compile '{}' \; + - find . -name "*.py" -exec pylint '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi + - find . -name "*.py" -exec python3 -m mccabe --min 3 '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi + - bandit -r . + + trigger: + branch: + - master