From df6476ef2a7629d731fbfe402ad310bae12d6598 Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Wed, 7 Aug 2019 19:40:45 +0200 Subject: [PATCH] Add LINT target to Travis --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index cbc5efa..fbf3412 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,7 @@ matrix: - python: 3.6 env: DISTRIB="ubuntu" TOX_PYTHON_VERSION="py36" COVERAGE="true" - env: DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="false" + - env: DISTRIB="ubuntu" TOX_PYTHON_VERSION="py36" COVERAGE="false" LINT="true" install: - source tests/travis_install.sh before_script: @@ -26,6 +27,7 @@ script: - export NO_GPU_EXECUTION=1 - pip install -e . - python setup.py test + - if [[ "$LINT" == "true" ]]; then flake8 src; fi after_success: - if [[ "$COVERAGE" == "true" ]]; then coveralls || echo "failed"; codecov; fi after_script: -- GitLab