mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
# Python CircleCI 2.0 configuration file
|
|
#
|
|
# Check https://circleci.com/docs/2.0/language-python/ for more details
|
|
#
|
|
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
# specify the version you desire here
|
|
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
|
|
- image: debian/buster
|
|
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
- checkout
|
|
|
|
- run:
|
|
name: install dependencies
|
|
command: |
|
|
sudo apt-get update && sudo apt-get install python3-pyqt5 python3-pip
|
|
sudo pip3 install -r install/requirements.txt
|
|
sudo pip3 install -r install/requirements-tests.txt
|
|
sudo pip3 install pytest-cov flake8
|
|
|
|
# run tests!
|
|
- run:
|
|
name: run flask tests
|
|
command: |
|
|
# 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
|
|
|
|
- run:
|
|
name: run tests
|
|
command: |
|
|
xvfb-run pytest --cov=onionshare --cov=onionshare_gui --cov-report=term-missing -vvv tests/
|
|
|