This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Only push new travis universe after successful builds on master (#81)

* Update travis pushing logic

* Echo variables
  • Loading branch information...
nottombrown committed Dec 24, 2016
1 parent f637b07 commit 6cf8f122e56fbc39a815ed677535b59ca863d52a
Showing with 3 additions and 1 deletion.
  1. +3 −1 .travis.yml
View
@@ -17,6 +17,8 @@ notifications:
on_success: always
on_failure: always
after_success:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- docker login quay.io -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker tag quay.io/openai/universe:test quay.io/openai/universe-travis:passed-ci
- ( while true; do echo '.'; sleep 60; done ) & docker push quay.io/openai/universe-travis:passed-ci # This repo is used by universe-envs to run integration test. We echo in order to keep travis alive during a slow push
- if [ "$BRANCH" == "master" ]; then ( while true; do echo '.'; sleep 60; done ) & docker push quay.io/openai/universe-travis:passed-ci; fi # This repo is used by universe-envs to run integration test. We echo in order to keep travis alive during a slow push

0 comments on commit 6cf8f12

Please sign in to comment.