Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit cced203

Browse files
committed
Don't pass tests if coverage succeeds but tests fail.
1 parent f91f2ca commit cced203

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.travis.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,4 @@ install:
2222
before_script: "flake8 --max-complexity 15 --exclude 'hyper/packages/*' hyper test"
2323

2424
script:
25-
- >
26-
if [[ "$TEST_RELEASE" == true ]]; then
27-
py.test test_release.py
28-
else
29-
if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then
30-
py.test test/
31-
else
32-
coverage run -m py.test test/
33-
coverage report
34-
fi
35-
fi
25+
- ".travis/run.sh"

.travis/run.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
if [[ "$TEST_RELEASE" == true ]]; then
7+
py.test test_release.py
8+
else
9+
if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then
10+
py.test test/
11+
else
12+
coverage run -m py.test test/
13+
coverage report
14+
fi
15+
fi

0 commit comments

Comments
 (0)