Fail if hypothesis-upload fails

This commit is contained in:
Markus Unterwaditzer 2016-10-01 20:09:13 +02:00
parent 3cf33e5efe
commit 0eda0984f2
3 changed files with 6 additions and 10 deletions

View file

@ -1,7 +1,4 @@
{
"after_script": [
"if [ \"$BUILD_PRS\" = \"true\" ] || [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]; then\n scripts/upload-hypothesis-db.sh;\nfi"
],
"branches": {
"only": [
"auto",

View file

@ -31,13 +31,16 @@ install-test: install-servers
[ $(CI) != "true" ] || pip install coverage codecov
test:
set -e; \
if [ "$(CI)" = "true" ]; then \
coverage run --source=vdirsyncer/ --module pytest; \
codecov; \
else \
py.test; \
fi
fi; \
STATUS=$?; \
set -e; \
[ "$(CI)" != "true" ] || codecov; \
[ "$(CI)" != "true" ] || scripts/upload-hypothesis-db.sh; \
[ "$$STATUS" = "0" ]
install-style: install-docs
pip install flake8 flake8-import-order flake8-bugbear

View file

@ -35,10 +35,6 @@ cfg['script'] = [script("""
make -e $BUILD;
""")]
cfg['after_script'] = [script("""
scripts/upload-hypothesis-db.sh;
""")]
matrix = []
cfg['matrix'] = {'include': matrix}