From 087efda7eda96995e9cced4e97d0dbba33db21e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 7 Jul 2020 22:58:54 +0200 Subject: [PATCH] analysis via sonar --- .drone.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.drone.yml b/.drone.yml index 2020d20..6864c3e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -27,6 +27,14 @@ steps: - find . -name "*.py" -exec python3 -m mccabe --min 3 '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi - bandit -r . + || if [ $? -eq 1 ]; then echo "you fail"; fi +- name: code-analysis + image: aosapps/drone-sonar-plugin + settings: + sonar_host: + from_secret: SONAR_HOST + sonar_token: + from_secret: SONAR_CODE + - name: rebuild-cache-with-filesystem image: meltwater/drone-cache:dev pull: true