Skip to content
This repository has been archived by the owner on Aug 16, 2019. It is now read-only.

Commit

Permalink
Only deploy to PyPI from the py 3.7 tests
Browse files Browse the repository at this point in the history
Otherwise, deployment to PyPI will fail (since you can only deploy once
for a particular version).
  • Loading branch information
raymondEhlers committed Jan 2, 2019
1 parent 0c782dc commit 460aab6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ deploy:
# would be fine, but we only want to do one. Using build stages would be nice, but then we
# would need to upload the docker image and the polymer and jsRoot files. So we take the
# easier solution by just selecting one.
condition: ${DOCKER_PYTHON_VERSION} =~ ^3
# Further, since there are multiple python 3 versions used in testing, we explicitly select 3.7 to
# deploy the tag to ensure that it doesn't try to deploy to PyPI twice (which will fail).
condition: ${DOCKER_PYTHON_VERSION} =~ ^3.7
- provider: script
# Variables are defined in the travis CI interface
# They include: $DOCKER_USERNAME, $DOCKER_PASSWORD
Expand Down

0 comments on commit 460aab6

Please sign in to comment.