Skip to content

Commit

Permalink
fixup! Fix build command
Browse files Browse the repository at this point in the history
  • Loading branch information
pganssle committed Nov 2, 2019
1 parent b73ef75 commit 7ce3d54
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Expand Up @@ -44,16 +44,18 @@ script:
- |
if [[ $TOXENV == "build" ]]; then
exactly_one() {
value=$(find . -iwholename $1 | wc -l)
if [ $value -neq 1 ]; then
value=$(find dist -iname $1 | wc -l)
if [ $value -ne 1 ]; then
echo "Found $value instances of $1, not 1"
exit 1
return 1
else
echo "Found exactly 1 instance of $value"
fi
}
# Check that exactly one tarball and one wheel are created
exactly_one 'dist/*.tar.gz'
exactly_one 'dist/*.whl'
exactly_one '*.tar.gz'
exactly_one '*.whl'
fi
after_success:
Expand Down

0 comments on commit 7ce3d54

Please sign in to comment.