knative-report/.drone.yml

20 lines
593 B
YAML
Raw Normal View History

2019-12-18 17:47:17 +01:00
kind: pipeline
type: docker
name: default
steps:
- name: shellcheck
image: python:3
commands:
2019-12-18 17:56:42 +01:00
- apt update && apt upgrade -y && apt install -y shellcheck
2019-12-18 17:47:17 +01:00
- 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 .
2019-12-18 17:54:20 +01:00
trigger:
branch:
- master