diff --git a/.travis.yml b/.travis.yml index 03224ce71..5e96e4bee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,7 +41,12 @@ install: script: - tox - - if [[ $TOXENV == "build" ]]; then [ ! -e "dist/*.whl" ] && [ ! -e "dist/*.tar.gz" ]; fi + - | + 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 ] + fi after_success: - if [[ $TOXENV == "py" ]]; then tox -e coverage,codecov; fi