Skip to content
This repository has been archived by the owner on Apr 6, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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 6cf8f12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -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.