2014-08-20 22:58:56 -04:00
|
|
|
language: python
|
2018-09-28 00:19:42 -04:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2014-08-20 22:58:56 -04:00
|
|
|
python:
|
2017-03-08 09:26:56 -05:00
|
|
|
- "3.6"
|
|
|
|
- "3.6-dev"
|
|
|
|
- "3.7-dev"
|
|
|
|
- "nightly"
|
2014-08-20 22:58:56 -04:00
|
|
|
# command to install dependencies
|
2017-05-31 01:25:42 -04:00
|
|
|
install:
|
2018-10-18 02:42:27 -04:00
|
|
|
- sudo apt-get update && sudo apt-get install -y python3-pip python3-flask python3-stem python3-pyqt5 python3-cryptography python3-crypto python3-nacl python3-socks python3-stdeb python3-all python-nautilus xvfb obfs4proxy
|
|
|
|
- sudo pip3 install -r install/requirements.txt
|
|
|
|
- sudo pip3 install -r install/requirements-tests.txt
|
|
|
|
- sudo pip3 install pytest-cov flake8
|
2018-02-14 02:00:21 -05: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-28 00:19:42 -04:00
|
|
|
# run CLI tests and local GUI tests
|
|
|
|
script:
|
2018-10-12 19:35:09 -04:00
|
|
|
- xvfb-run pytest --cov=onionshare --cov=onionshare_gui -vvv tests/
|