Skip to content

Commit

Permalink
Print $TRAVIS_TAG in build logs
Browse files Browse the repository at this point in the history
This is intended to help us solve mysteries like
#185 (comment),
where a 5.0.0.dev0 release was uploaded despite there being no git tags
pointing to the relevant commit that anyone knows about.
  • Loading branch information
mgedmin committed Mar 10, 2020
1 parent 6b7861f commit 4afc5ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ after_success:
/usr/bin/python -m pip install --user -U -I twine
/usr/bin/python -m twine check dist/*
if [[ $TRAVIS_TAG ]]; then
printf "Uploading tagged release %s\n" "$TRAVIS_TAG"
/usr/bin/python -m twine upload --skip-existing dist/*
fi
fi
Expand All @@ -115,6 +116,7 @@ after_success:
pip install twine
twine check wheelhouse/*
if [[ $TRAVIS_TAG ]]; then
printf "Uploading tagged release %s\n" "$TRAVIS_TAG"
twine upload --skip-existing wheelhouse/*
fi
fi
Expand Down

0 comments on commit 4afc5ec

Please sign in to comment.