add drone config
This commit is contained in:
parent
704161c2d4
commit
ed7ba5f795
19
.drone.yml
Normal file
19
.drone.yml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user