mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Fail if hypothesis-upload fails
This commit is contained in:
parent
3cf33e5efe
commit
0eda0984f2
3 changed files with 6 additions and 10 deletions
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
{
|
||||||
"after_script": [
|
|
||||||
"if [ \"$BUILD_PRS\" = \"true\" ] || [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]; then\n scripts/upload-hypothesis-db.sh;\nfi"
|
|
||||||
],
|
|
||||||
"branches": {
|
"branches": {
|
||||||
"only": [
|
"only": [
|
||||||
"auto",
|
"auto",
|
||||||
|
|
|
||||||
9
Makefile
9
Makefile
|
|
@ -31,13 +31,16 @@ install-test: install-servers
|
||||||
[ $(CI) != "true" ] || pip install coverage codecov
|
[ $(CI) != "true" ] || pip install coverage codecov
|
||||||
|
|
||||||
test:
|
test:
|
||||||
set -e; \
|
|
||||||
if [ "$(CI)" = "true" ]; then \
|
if [ "$(CI)" = "true" ]; then \
|
||||||
coverage run --source=vdirsyncer/ --module pytest; \
|
coverage run --source=vdirsyncer/ --module pytest; \
|
||||||
codecov; \
|
|
||||||
else \
|
else \
|
||||||
py.test; \
|
py.test; \
|
||||||
fi
|
fi; \
|
||||||
|
STATUS=$?; \
|
||||||
|
set -e; \
|
||||||
|
[ "$(CI)" != "true" ] || codecov; \
|
||||||
|
[ "$(CI)" != "true" ] || scripts/upload-hypothesis-db.sh; \
|
||||||
|
[ "$$STATUS" = "0" ]
|
||||||
|
|
||||||
install-style: install-docs
|
install-style: install-docs
|
||||||
pip install flake8 flake8-import-order flake8-bugbear
|
pip install flake8 flake8-import-order flake8-bugbear
|
||||||
|
|
|
||||||
|
|
@ -35,10 +35,6 @@ cfg['script'] = [script("""
|
||||||
make -e $BUILD;
|
make -e $BUILD;
|
||||||
""")]
|
""")]
|
||||||
|
|
||||||
cfg['after_script'] = [script("""
|
|
||||||
scripts/upload-hypothesis-db.sh;
|
|
||||||
""")]
|
|
||||||
|
|
||||||
matrix = []
|
matrix = []
|
||||||
cfg['matrix'] = {'include': matrix}
|
cfg['matrix'] = {'include': matrix}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue