Skip to content

Commit

Permalink
fixup! Fix Travis test for build command.
Browse files Browse the repository at this point in the history
  • Loading branch information
pganssle committed Nov 2, 2019
1 parent ea321aa commit b73ef75
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Expand Up @@ -43,9 +43,17 @@ script:
- tox
- |
if [[ $TOXENV == "build" ]]; then
# Check that exactly one tarball and one wheel are created
[ $(find . -iwholename 'dist/*.tar.gz' | wc -l) -eq 1 ]
[ $(find . -iwholename 'dist/*.whl' | wc -l) -eq 1 ]
exactly_one() {
value=$(find . -iwholename $1 | wc -l)
if [ $value -neq 1 ]; then
echo "Found $value instances of $1, not 1"
exit 1
fi
}
# Check that exactly one tarball and one wheel are created
exactly_one 'dist/*.tar.gz'
exactly_one 'dist/*.whl'
fi
after_success:
Expand Down

0 comments on commit b73ef75

Please sign in to comment.