From 5a64c72cc9cc231033d3e405699a440430ed2b67 Mon Sep 17 00:00:00 2001 From: Torma Date: Mon, 19 Oct 2020 23:50:59 +0200 Subject: [PATCH] do code analysis via sonar --- .drone.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1e7e429..df44521 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,16 +3,6 @@ type: docker name: default steps: -- name: static_analysis - image: "python:3.8" - commands: - - pip3 install --cache-dir='./.pipcache' pylint bandit mccabe - - pip3 install --cache-dir='./.pipcache' -r requirements.txt - - 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 . + || if [ $? -eq 1 ]; then echo "you fail"; fi - - name: code-analysis image: aosapps/drone-sonar-plugin settings: