2014-08-20 21:58:56 -05:00
|
|
|
language: python
|
2018-09-27 21:19:42 -07:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2014-08-20 21:58:56 -05:00
|
|
|
python:
|
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-09-27 21:19:42 -07:00
|
|
|
- sudo apt-get update && sudo apt-get install python3-pyqt5
|
2018-09-17 15:54:37 -07:00
|
|
|
- pip install -r install/requirements.txt
|
2018-09-27 21:19:42 -07:00
|
|
|
- pip install -r install/requirements-tests.txt
|
2018-09-22 18:07:14 +10:00
|
|
|
- pip install pytest-cov coveralls flake8
|
2018-02-14 08:00:21 +01:00
|
|
|
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
|
2018-09-27 21:19:42 -07:00
|
|
|
# run CLI tests and local GUI tests
|
|
|
|
script:
|
|
|
|
- pytest --cov=onionshare tests/
|
|
|
|
- cd tests_gui_local/ && xvfb-run ./run_unit_tests.sh
|
2017-05-30 23:53:51 -06:00
|
|
|
after_success:
|
|
|
|
- coveralls
|