mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-12 15:59:30 -05:00
circleci tweaks
This commit is contained in:
parent
67d75826ae
commit
68bff3fd50
@ -22,18 +22,14 @@ jobs:
|
|||||||
name: install dependencies
|
name: install dependencies
|
||||||
command: |
|
command: |
|
||||||
sudo apt-get update && sudo apt-get install python3-pyqt5
|
sudo apt-get update && sudo apt-get install python3-pyqt5
|
||||||
python3 -m venv venv
|
pip3 install -r install/requirements.txt
|
||||||
. venv/bin/activate
|
pip3 install -r install/requirements-tests.txt
|
||||||
pip install -r install/requirements.txt
|
pip3 install pytest-cov flake8
|
||||||
pip install -r install/requirements-tests.txt
|
|
||||||
pip install pytest-cov flake8
|
|
||||||
pip install -r install/requirements-tests.txt
|
|
||||||
|
|
||||||
# run tests!
|
# run tests!
|
||||||
- run:
|
- run:
|
||||||
name: run flask tests
|
name: run flask tests
|
||||||
command: |
|
command: |
|
||||||
. venv/bin/activate
|
|
||||||
# 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
|
||||||
@ -42,6 +38,5 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: run tests
|
name: run tests
|
||||||
command: |
|
command: |
|
||||||
. venv/bin/activate
|
|
||||||
xvfb-run pytest --cov=onionshare --cov=onionshare_gui --cov-report=term-missing -vvv tests/
|
xvfb-run pytest --cov=onionshare --cov=onionshare_gui --cov-report=term-missing -vvv tests/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user