Save results in JUnit format and push to Testspace server

This commit is contained in:
Mark Underseth 2018-01-02 19:24:32 +00:00
parent ca0bc1cb7d
commit ff93e067ba

View File

@ -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