From 5c5a276438cc72183de07276f19b22a79990719e Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Sat, 26 Jun 2021 10:31:00 -0700 Subject: [PATCH] Store tests for circleci (#1669) --- .circleci/config.yml | 56 +++++++++++++++++--------------------------- 1 file changed, 22 insertions(+), 34 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d5e10f4f5..547da6c6e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -142,7 +142,10 @@ jobs: - run: name: test command: | - tools/pytest_wrapper.py src packages/micropip/ -v -k firefox -n 3 + mkdir test-results + tools/pytest_wrapper.py --junitxml=test-results/junit.xml src packages/micropip/ -v -k firefox -n 3 + - store_test_results: + path: test-results test-core-chrome: <<: *defaults @@ -152,7 +155,10 @@ jobs: - run: name: test command: | - tools/pytest_wrapper.py src packages/micropip/ -v -k chrome + mkdir test-results + tools/pytest_wrapper.py --junitxml=test-results/junit.xml src packages/micropip/ -v -k chrome + - store_test_results: + path: test-results test-packages-firefox: <<: *defaults @@ -162,7 +168,10 @@ jobs: - run: name: test command: | - tools/pytest_wrapper.py packages/test* packages/*/test* -v -k firefox + mkdir test-results + tools/pytest_wrapper.py --junitxml=test-results/junit.xml packages/test* packages/*/test* -v -k firefox + - store_test_results: + path: test-results test-packages-chrome: <<: *defaults @@ -172,7 +181,10 @@ jobs: - run: name: test command: | - tools/pytest_wrapper.py packages/test* packages/*/test* -v -k chrome -n 2 + mkdir test-results + tools/pytest_wrapper.py --junitxml=test-results/junit.xml packages/test* packages/*/test* -v -k chrome -n 2 + - store_test_results: + path: test-results test-emsdk: <<: *defaults @@ -192,7 +204,10 @@ jobs: - run: name: test command: | - pytest src pyodide-build packages/micropip/ -v -k 'not (chrome or firefox)' --cov=pyodide_build --cov=pyodide + mkdir test-results + pytest --junitxml=test-results/junit.xml src pyodide-build packages/micropip/ -v -k 'not (chrome or firefox)' --cov=pyodide_build --cov=pyodide + - store_test_results: + path: test-results test-js-types: <<: *defaults @@ -291,56 +306,29 @@ workflows: jobs: - lint - test-docs - - build-core: - filters: - tags: - only: /.*/ + - test-python + - build-core - build-packages: requires: - build-core - filters: - tags: - only: /.*/ - test-core-chrome: requires: - build-core - filters: - tags: - only: /.*/ - test-core-firefox: requires: - build-core - filters: - tags: - only: /.*/ - test-packages-chrome: requires: - build-packages - filters: - tags: - only: /.*/ - test-packages-firefox: requires: - build-packages - filters: - tags: - only: /.*/ - test-emsdk: requires: - build-core - filters: - tags: - only: /.*/ - - test-python: - filters: - tags: - only: /.*/ - test-js-types: requires: - build-core - filters: - tags: - only: /.*/ - benchmark: requires: - build-packages