Skip to content

Commit e613659

Browse files
committed
Ensure python test failure fails Travis
1 parent cf9ae53 commit e613659

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

{{cookiecutter.github_project_name}}/.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ before_script:
4646
script:
4747
- |
4848
if [[ $GROUP == python ]]; then
49+
EXIT_STATUS=0
4950
pushd $(mktemp -d)
50-
py.test -l --cov-report xml:$TRAVIS_BUILD_DIR/coverage.xml --cov={{ cookiecutter.python_package_name }} --pyargs {{ cookiecutter.python_package_name }}
51+
py.test -l --cov-report xml:$TRAVIS_BUILD_DIR/coverage.xml --cov={{ cookiecutter.python_package_name }} --pyargs {{ cookiecutter.python_package_name }} || EXIT_STATUS=$?
5152
popd
53+
exit $EXIT_STATUS
5254
elif [[ $GROUP == js ]]; then
5355
npm test
5456
fi

0 commit comments

Comments
 (0)