diff options
author | Miguel Jacq <mig@mig5.net> | 2018-10-17 16:58:05 +1100 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2018-10-17 16:58:05 +1100 |
commit | d40351e0af4b7da08d246615ab15571495780f31 (patch) | |
tree | fd2ee0a0cdb0c4c308d1f0d7c6995ec35dbb1e48 /.circleci | |
parent | ce5d978a8feba7069173b9fbefbb0f7ecbf14ec5 (diff) | |
download | onionshare-d40351e0af4b7da08d246615ab15571495780f31.tar.gz onionshare-d40351e0af4b7da08d246615ab15571495780f31.zip |
circleci tweaks
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 79f902c5..6adcdfa9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,27 +18,26 @@ jobs: steps: - checkout - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "install/requirements-tests.txt" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - run: name: install dependencies command: | + sudo apt-get update && sudo apt-get install python3-pyqt5 python3 -m venv venv . venv/bin/activate + pip install -r install/requirements.txt + pip install -r install/requirements-tests.txt + pip install pytest-cov flake8 pip install -r install/requirements-tests.txt - - save_cache: - paths: - - ./venv - key: v1-dependencies-{{ checksum "install/requirements-tests.txt" }} - # 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 + name: run tests command: | . venv/bin/activate |