New TravisCI setup, using build stages
This commit is contained in:
9
scripts/travis-offline
Executable file
9
scripts/travis-offline
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
echo travis_fold:start:pytest
|
||||
|
||||
python -m pytest -m offline
|
||||
|
||||
echo travis_fold:end:pytest
|
12
scripts/travis-online
Executable file
12
scripts/travis-online
Executable 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
|
Reference in New Issue
Block a user