2014-08-20 21:58:56 -05:00
|
|
|
language: python
|
2017-05-30 23:39:06 -06:00
|
|
|
# sudo: required
|
2016-02-15 23:09:09 -08:00
|
|
|
dist: trusty
|
2014-08-20 21:58:56 -05:00
|
|
|
python:
|
2016-02-15 23:09:09 -08:00
|
|
|
- "3.4"
|
|
|
|
- "3.5"
|
2017-03-08 15:26:56 +01:00
|
|
|
- "3.6"
|
|
|
|
- "3.6-dev"
|
|
|
|
- "3.7-dev"
|
|
|
|
- "nightly"
|
2014-08-20 21:58:56 -05:00
|
|
|
# command to install dependencies
|
2017-05-30 23:25:42 -06:00
|
|
|
install:
|
2018-02-14 08:00:21 +01:00
|
|
|
- pip install Flask==0.12 stem==1.5.4 pytest-cov coveralls flake8
|
|
|
|
before_script:
|
|
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
|
|
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
|
|
|
# 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
|
2014-08-20 21:58:56 -05:00
|
|
|
# command to run tests
|
2017-05-30 23:51:29 -06:00
|
|
|
script: pytest --cov=onionshare test/
|
2017-05-30 23:53:51 -06:00
|
|
|
after_success:
|
|
|
|
- coveralls
|