2019-01-22 08:31:36 +00:00
|
|
|
group: travis_latest
|
2019-07-13 08:06:28 +00:00
|
|
|
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
|
2019-01-22 08:31:36 +00:00
|
|
|
language: python
|
|
|
|
cache: pip
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- python: nightly
|
2019-07-15 03:16:35 +00:00
|
|
|
- name: "Sherlock Site Coverage Tests"
|
2019-01-22 08:31:36 +00:00
|
|
|
include:
|
|
|
|
- python: 3.6
|
|
|
|
- python: 3.7
|
|
|
|
- python: nightly
|
2019-07-15 03:08:59 +00:00
|
|
|
- python: 3.7
|
|
|
|
before_script: true # override the flake8 tests
|
|
|
|
name: "Sherlock Site Coverage Tests"
|
2019-07-15 03:16:35 +00:00
|
|
|
script: python -m unittest tests.all.SherlockSiteCoverageTests --buffer --verbose
|
2019-01-22 08:31:36 +00:00
|
|
|
install:
|
2019-07-13 08:06:28 +00:00
|
|
|
- pip install flake8 -r requirements.txt
|
2019-01-22 08:31:36 +00:00
|
|
|
before_script:
|
|
|
|
# stop the build if there are Python syntax errors or undefined names
|
2019-07-13 08:06:28 +00:00
|
|
|
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
2019-01-22 08:31:36 +00:00
|
|
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
|
|
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
|
|
script:
|
2019-07-14 23:35:02 +00:00
|
|
|
- python -m unittest tests.all.SherlockDetectTests --buffer --verbose || true
|
2019-01-22 08:31:36 +00:00
|
|
|
notifications:
|
|
|
|
on_success: change
|
|
|
|
on_failure: change # `always` will be the setting once code changes slow down
|