New TravisCI setup, using build stages

This commit is contained in:
Mads Marquart
2018-06-21 21:13:17 +02:00
parent 4f032cd946
commit e0d3dd9050
3 changed files with 96 additions and 23 deletions

12
scripts/travis-online Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
set -ex
echo travis_fold:start:pytest
if ! python -m pytest --tb=no --color=yes; then # --tb=no -> Don't print stack traces
echo 'Some tests failed. Rerunning them, since they can be kinda flaky.'
python -m pytest --last-failed --color=yes
fi
echo travis_fold:end:pytest