From 9e33fc884f883f902c164a3eafb75a772623ed2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Thu, 9 Jan 2020 14:11:37 +0100 Subject: [PATCH] drone config --- .done-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .done-ci.yml diff --git a/.done-ci.yml b/.done-ci.yml new file mode 100644 index 0000000..886290f --- /dev/null +++ b/.done-ci.yml @@ -0,0 +1,15 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: static + image: python + commands: + - apt-get update && apt-get 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 .