Skip to content

Commit

Permalink
Merge pull request pypa#106 from ehashman/issue-105
Browse files Browse the repository at this point in the history
Ensure Travis fails when tests fail [ignore CI failure]
  • Loading branch information
ehashman authored Oct 27, 2018
2 parents c6dd86b + 0e7e4ab commit f270c41
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,15 @@ notifications:
email: false

before_install:
- pip install --upgrade pip wheel
- pip install --upgrade pip

install:
- pip install -r test-requirements.txt
- pip install .


script:
- |
if [[ "$WHEELHOUSE" == "1" ]]; then
bash tests/test-wheelhouses.sh
else
pytest -s
auditwheel lddtree $(python -c 'import sys; print(sys.executable)')
fi
- tests/travis.sh

deploy:
provider: pypi
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
setuptools
wheel >= 0.26.0
wheel == 0.31.1
typing >=3.5.0.1
pyelftools >=0.24
10 changes: 10 additions & 0 deletions tests/travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -exo pipefail

if [[ "$WHEELHOUSE" == "1" ]]; then
bash tests/test-wheelhouses.sh
else
pytest -s
auditwheel lddtree $(python -c 'import sys; print(sys.executable)')
fi

0 comments on commit f270c41

Please sign in to comment.