multi python version

This commit is contained in:
Piotr Lizonczyk
2019-02-24 14:54:09 +01:00
committed by Piotr Lizończyk
parent d8843dd2c8
commit 944622214a

View File

@@ -1,9 +1,27 @@
version: 2
jobs:
build:
working_directory: ~/noiseprotocol
build35:
docker:
- image: circleci/python:3.6.4
- image: circleci/python:3.5
steps:
- checkout
- run: sudo chown -R circleci:circleci /usr/local/bin
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.5/site-packages
- run:
command: |
sudo pip install -r requirements.txt
sudo pip install -r dev_requirements.txt
- run:
command: |
mkdir test-reports
pytest --junitxml=test-reports/junit.xml
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
build36:
docker:
- image: circleci/python:3.6
steps:
- checkout
- run: sudo chown -R circleci:circleci /usr/local/bin
@@ -19,4 +37,31 @@ jobs:
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
path: test-results
build37:
docker:
- image: circleci/python:3.7
steps:
- checkout
- run: sudo chown -R circleci:circleci /usr/local/bin
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages
- run:
command: |
sudo pip install -r requirements.txt
sudo pip install -r dev_requirements.txt
- run:
command: |
mkdir test-reports
pytest --junitxml=test-reports/junit.xml
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
workflows:
version: 2
build:
jobs:
- build35
- build36
- build37