2017-06-24 14:37:56 +00:00
|
|
|
sudo: false
|
|
|
|
dist: trusty
|
|
|
|
language: python
|
|
|
|
python:
|
2017-06-29 17:08:52 +00:00
|
|
|
- "3.5.0"
|
2017-06-24 14:41:33 +00:00
|
|
|
- "3.6.1"
|
2017-06-24 14:37:56 +00:00
|
|
|
- "nightly" # currently points to 3.7-dev
|
|
|
|
install:
|
2017-06-27 22:14:08 +00:00
|
|
|
- pip install flake8, pytest
|
2017-06-24 14:37:56 +00:00
|
|
|
before_script:
|
|
|
|
# stop the build if there are Python syntax errors
|
|
|
|
- flake8 . --count --select=E901,E999 --statistics
|
|
|
|
# exit-zero treates all errors as warnings. The GitHub editor is 127 chars wide
|
|
|
|
- flake8 . --count --exit-zero --max-line-length=127 --statistics
|
|
|
|
script:
|
2017-06-28 04:44:37 +00:00
|
|
|
pytest --capture=sys
|
2017-06-27 22:14:08 +00:00
|
|
|
# python unittest.py
|
2017-06-24 14:37:56 +00:00
|
|
|
notifications:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|