2017-06-24 16:37:56 +02:00
|
|
|
sudo: false
|
|
|
|
dist: trusty
|
|
|
|
language: python
|
|
|
|
python:
|
2017-07-04 06:57:51 +02:00
|
|
|
- 3.5 # currently Travis trusty default Python3 is 3.5.2
|
2017-07-04 15:00:28 +02:00
|
|
|
#- 3.6.1
|
|
|
|
#- "nightly" # currently points to 3.7-dev (3.7.0a0)
|
2017-06-24 16:37:56 +02:00
|
|
|
install:
|
2017-07-04 06:57:51 +02:00
|
|
|
- pip install flake8 pytest
|
2017-06-24 16:37:56 +02:00
|
|
|
before_script:
|
2017-07-04 06:57:51 +02:00
|
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
|
|
- flake8 . --count --select=E901,E999,F821,F822,F823 --statistics
|
2017-06-24 16:37:56 +02:00
|
|
|
# exit-zero treates all errors as warnings. The GitHub editor is 127 chars wide
|
2017-07-04 10:47:10 +02:00
|
|
|
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
2017-06-24 16:37:56 +02:00
|
|
|
script:
|
2017-06-28 06:44:37 +02:00
|
|
|
pytest --capture=sys
|
2017-06-28 00:14:08 +02:00
|
|
|
# python unittest.py
|
2017-06-24 16:37:56 +02:00
|
|
|
notifications:
|
|
|
|
on_success: change
|
2017-07-04 15:00:28 +02:00
|
|
|
on_failure: change # `always` will be the setting once code changes slow down
|