travis: only upload package when not building a pull request
authorYann Sionneau <ys@m-labs.hk>
Wed, 9 Sep 2015 15:09:24 +0000 (17:09 +0200)
committerYann Sionneau <ys@m-labs.hk>
Wed, 9 Sep 2015 15:09:24 +0000 (17:09 +0200)
.travis.yml

index ea62f9dc444b9af0f7250246a9a4f7ab1e5a8804..399655730863be15ef8844fa9f4309b2d518f1be 100644 (file)
@@ -36,8 +36,8 @@ script:
 
 after_success:
   # Upload Migen conda package to binstar
-  - anaconda login --hostname $(hostname) --username $binstar_login --password $binstar_password
-  - anaconda upload --user $binstar_login --channel dev --force $HOME/miniconda/conda-bld/linux-64/migen-*.tar.bz2
+  - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then anaconda login --hostname $(hostname) --username $binstar_login --password $binstar_password; fi
+  - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then anaconda upload --user $binstar_login --channel dev --force $HOME/miniconda/conda-bld/linux-64/migen-*.tar.bz2; fi
 
 notifications:
   email: false