From 460aab69f62ffdffc511989d33c0c8928ac61a67 Mon Sep 17 00:00:00 2001 From: Raymond Ehlers Date: Wed, 2 Jan 2019 12:43:07 -0800 Subject: [PATCH] Only deploy to PyPI from the py 3.7 tests Otherwise, deployment to PyPI will fail (since you can only deploy once for a particular version). --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6db2c1e2..c5e9a305 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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