Skip to content
Snippets Groups Projects
Commit df6476ef authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add LINT target to Travis

parent 2f3b5b1f
Branches
Tags
No related merge requests found
...@@ -17,6 +17,7 @@ matrix: ...@@ -17,6 +17,7 @@ matrix:
- python: 3.6 - python: 3.6
env: DISTRIB="ubuntu" TOX_PYTHON_VERSION="py36" COVERAGE="true" env: DISTRIB="ubuntu" TOX_PYTHON_VERSION="py36" COVERAGE="true"
- env: DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="false" - env: DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="false"
- env: DISTRIB="ubuntu" TOX_PYTHON_VERSION="py36" COVERAGE="false" LINT="true"
install: install:
- source tests/travis_install.sh - source tests/travis_install.sh
before_script: before_script:
...@@ -26,6 +27,7 @@ script: ...@@ -26,6 +27,7 @@ script:
- export NO_GPU_EXECUTION=1 - export NO_GPU_EXECUTION=1
- pip install -e . - pip install -e .
- python setup.py test - python setup.py test
- if [[ "$LINT" == "true" ]]; then flake8 src; fi
after_success: after_success:
- if [[ "$COVERAGE" == "true" ]]; then coveralls || echo "failed"; codecov; fi - if [[ "$COVERAGE" == "true" ]]; then coveralls || echo "failed"; codecov; fi
after_script: after_script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment