diff --git a/.circleci/config.yml b/.circleci/config.yml index ef21325..f7c3b82 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 \ No newline at end of file + 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 \ No newline at end of file