knative-report/.travis.yml

20 lines
519 B
YAML
Raw Normal View History

2019-10-24 01:16:50 +02:00
language: python
2019-11-12 13:20:49 +01:00
dist: bionic
2019-10-24 01:16:50 +02:00
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 .