Skip to content

Commit

Permalink
Store test results as artifacts
Browse files Browse the repository at this point in the history
Adjust the test commands to store the test results as XML, which are
then stored as test results.
  • Loading branch information
jwhitlock committed Feb 25, 2022
1 parent 6eeca71 commit c18ef07
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,22 @@ 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: |
mkdir -p /tmp/test-results
mkdir -p /tmp/test-results/coverage
mkdir -p /tmp/test-results/pytest
chmod a+rwx /tmp/test-results
chmod a+rwx /tmp/test-results/coverage
chmod a+rwx /tmp/test-results/pytest
docker run \
--entrypoint "/bin/bash" \
-v /tmp/test-results:/tmp/test-results \
fx-private-relay \
-c \
'/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'
- store_test_results:
path: /tmp/test-results

deploy:
docker:
Expand Down

0 comments on commit c18ef07

Please sign in to comment.