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