2017-06-24 14:37:56 +00:00
|
|
|
language: python
|
|
|
|
python:
|
2017-08-10 03:31:00 +00:00
|
|
|
- 3.6
|
|
|
|
cache: pip
|
2017-06-24 14:37:56 +00:00
|
|
|
install:
|
2018-07-24 22:45:54 +00:00
|
|
|
- pip install --editable .
|
2017-07-04 04:57:51 +00:00
|
|
|
- pip install flake8 pytest
|
2017-06-24 14:37:56 +00:00
|
|
|
before_script:
|
2017-07-04 04:57:51 +00:00
|
|
|
# stop the build if there are Python syntax errors or undefined names
|
2017-08-10 03:31:00 +00:00
|
|
|
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
2017-06-24 14:37:56 +00:00
|
|
|
# exit-zero treates all errors as warnings. The GitHub editor is 127 chars wide
|
2017-07-04 08:47:10 +00:00
|
|
|
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
2017-06-24 14:37:56 +00:00
|
|
|
script:
|
2017-06-28 04:44:37 +00:00
|
|
|
pytest --capture=sys
|
2017-06-24 14:37:56 +00:00
|
|
|
notifications:
|
|
|
|
on_success: change
|
2017-07-04 13:00:28 +00:00
|
|
|
on_failure: change # `always` will be the setting once code changes slow down
|