add ci
This commit is contained in:
parent
dc3e951346
commit
45ea7e3e00
20
.travis.yml
Normal file
20
.travis.yml
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
language: python
|
||||
dist: xenial
|
||||
cache: pip
|
||||
|
||||
addons:
|
||||
apt:
|
||||
update: true
|
||||
packages: shellcheck
|
||||
|
||||
install:
|
||||
- pip3 install pylint bandit mccabe
|
||||
|
||||
script:
|
||||
- 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 .
|
||||
|
Loading…
Reference in New Issue
Block a user