From ff93e067ba0a938ecccc05178ab1b4876cb659b4 Mon Sep 17 00:00:00 2001 From: Mark Underseth Date: Tue, 2 Jan 2018 19:24:32 +0000 Subject: [PATCH] Save results in JUnit format and push to Testspace server --- .travis.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index afac549a..e063eadc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,8 +18,21 @@ matrix: python: 3.6 - env: TOX_ENV=check python: 3.6 +before_install: + - mkdir -p $HOME/bin + - curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME/bin + - testspace config url $TS_ORG.testspace.com install: pip install -U tox -script: tox -e $TOX_ENV +script: + - if [[ "${TOX_ENV}" =~ ^py ]] ; then + tox -e $TOX_ENV -- --junit-xml=testresults.xml; + else + tox -e $TOX_ENV; + fi +after_script: + - if [[ "${TOX_ENV}" =~ ^py ]] ; then + testspace [${TOX_ENV}]testresults.xml{tests}; + fi deploy: provider: pypi user: channelcat