Save test results on CircleCI

The JUNIT_XML setting was erroneously brought over from another repo;
here we can just tell tox to put the results in a subdir and save
that.
This commit is contained in:
Bryan Boreham 2019-04-15 15:40:49 +00:00
parent ae18dbc61b
commit 8dab6f6d61
3 changed files with 3 additions and 4 deletions

View File

@ -24,8 +24,7 @@ jobs:
- run: - run:
name: make all name: make all
command: | command: |
mkdir -p test-results/tests make all
make JUNIT_XML=test-results/tests/junit.xml all
- store_test_results: - store_test_results:
path: test-results path: test-results
- store_artifacts: - store_artifacts:

2
.gitignore vendored
View File

@ -5,7 +5,7 @@ build/
dist/ dist/
.uptodate .uptodate
/.env /.env
/junit-*.xml test-results/junit-*.xml
/.cache /.cache
.ensure-* .ensure-*
/.tox /.tox

View File

@ -7,7 +7,7 @@
envlist = py27, py34, py35, py36 envlist = py27, py34, py35, py36
[testenv] [testenv]
commands = pytest --junitxml=junit-{envname}.xml commands = pytest --junitxml=test-results/junit-{envname}.xml
deps = deps =
pytest pytest