mirror of
https://github.com/morgan9e/noiseprotocol
synced 2026-04-14 00:14:05 +09:00
multi python version
This commit is contained in:
committed by
Piotr Lizończyk
parent
d8843dd2c8
commit
944622214a
@@ -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
|
||||
Reference in New Issue
Block a user