From 8dab6f6d6177385c6d55ceb3f1318de581f0a4b9 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Mon, 15 Apr 2019 15:40:49 +0000 Subject: [PATCH] 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. --- .circleci/config.yml | 3 +-- .gitignore | 2 +- tox.ini | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d630ebd..2984a4c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,8 +24,7 @@ jobs: - run: name: make all command: | - mkdir -p test-results/tests - make JUNIT_XML=test-results/tests/junit.xml all + make all - store_test_results: path: test-results - store_artifacts: diff --git a/.gitignore b/.gitignore index adbed8c..db82062 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ build/ dist/ .uptodate /.env -/junit-*.xml +test-results/junit-*.xml /.cache .ensure-* /.tox diff --git a/tox.ini b/tox.ini index ca09d4d..02019bf 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,7 @@ envlist = py27, py34, py35, py36 [testenv] -commands = pytest --junitxml=junit-{envname}.xml +commands = pytest --junitxml=test-results/junit-{envname}.xml deps = pytest