diff --git a/.circleci/config.yml b/.circleci/config.yml index 23a100bdea..719edaa1ed 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -60,7 +60,19 @@ jobs: - run: name: Test Code - command: docker run --entrypoint "/app/.local/bin/coverage" fx-private-relay run --source=. -m pytest --cov=./ --cov-fail-under=60 + command: | + docker create -v /tmp/test-results --name test-results alpine /bin/true + docker run test-results /bin/sh -c "chmod 0777 /tmp/test-results && chown 10001:10001 /tmp/test-results" + docker run \ + --entrypoint "/bin/bash" \ + --volumes-from test-results \ + fx-private-relay \ + -c \ + 'mkdir -p /tmp/test-results/pytest && mkdir -p /tmp/test-results/coverage && /app/.local/bin/coverage run --source=. --branch -m pytest --cov=./ --cov-fail-under=60 --junitxml=/tmp/test-results/pytest/results.xml && /app/.local/bin/coverage xml -o /tmp/test-results/coverage/results.xml' + docker cp test-results:/tmp/test-results /tmp + + - store_test_results: + path: /tmp/test-results deploy: docker: