mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Update Travis CI to run GUI tests
This commit is contained in:
parent
8261b4868d
commit
6f57f7eae6
12
.travis.yml
12
.travis.yml
@ -1,6 +1,6 @@
|
|||||||
language: python
|
language: python
|
||||||
# sudo: required
|
dist: trusty
|
||||||
dist: bionic
|
sudo: required
|
||||||
python:
|
python:
|
||||||
- "3.6"
|
- "3.6"
|
||||||
- "3.6-dev"
|
- "3.6-dev"
|
||||||
@ -8,14 +8,18 @@ python:
|
|||||||
- "nightly"
|
- "nightly"
|
||||||
# command to install dependencies
|
# command to install dependencies
|
||||||
install:
|
install:
|
||||||
|
- sudo apt-get update && sudo apt-get install python3-pyqt5
|
||||||
- pip install -r install/requirements.txt
|
- pip install -r install/requirements.txt
|
||||||
|
- pip install -r install/requirements-tests.txt
|
||||||
- pip install pytest-cov coveralls flake8
|
- pip install pytest-cov coveralls flake8
|
||||||
before_script:
|
before_script:
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
# stop the build if there are Python syntax errors or undefined names
|
||||||
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
- 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
|
# 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
|
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
# command to run tests
|
# run CLI tests and local GUI tests
|
||||||
script: pytest --cov=onionshare tests/
|
script:
|
||||||
|
- pytest --cov=onionshare tests/
|
||||||
|
- cd tests_gui_local/ && xvfb-run ./run_unit_tests.sh
|
||||||
after_success:
|
after_success:
|
||||||
- coveralls
|
- coveralls
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for test in `ls -1 | egrep ^onionshare_`; do
|
for test in `ls -1 | egrep ^onionshare_`; do
|
||||||
py.test-3 $test -vvv || exit 1
|
pytest $test -vvv || exit 1
|
||||||
done
|
done
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for test in `ls -1 | egrep ^onionshare_`; do
|
for test in `ls -1 | egrep ^onionshare_`; do
|
||||||
py.test-3 $test -vvv || exit 1
|
pytest $test -vvv || exit 1
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user