Skip to content

Commit

Permalink
prepare V3 production branch...
Browse files Browse the repository at this point in the history
  • Loading branch information
nad2000 committed Dec 18, 2017
1 parent 2b96971 commit 9261c8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
- docker

env:
- ENV=dev PGPORT=54321 USER_UID=$(id -u) USER_GID=$(id -g) DOMAIN=build.orcidhub.org.nz PROD_BRANCH=V2
- ENV=dev PGPORT=54321 USER_UID=$(id -u) USER_GID=$(id -g) DOMAIN=build.orcidhub.org.nz PROD_BRANCH=V2 UAT_BRANCH=V3

before_install:
- sudo rm /usr/local/bin/docker-compose
Expand Down Expand Up @@ -42,8 +42,8 @@ after_success:
- ssh-add .travis/deploy.key
- git remote add deploy ssh://ec2-user@dev.orcidhub.org.nz/~/repo.git
- git remote add test ssh://ec2-user@test.orcidhub.org.nz/~/repo.git
- test "$TRAVIS_BRANCH" != "$PROD_BRANCH" && git push deploy HEAD:$TRAVIS_BRANCH # Deploy the dev if it's not the production branch
- test "$TRAVIS_BRANCH" == "$PROD_BRANCH" -a "$TRAVIS_EVENT_TYPE" == "push" && git push test HEAD:$TRAVIS_BRANCH # Deploy the prod.branc to UAT env
- test "$TRAVIS_BRANCH" != "$PROD_BRANCH" -a "$TRAVIS_BRANCH" != "$UAT_BRANCH" && git push deploy HEAD:$TRAVIS_BRANCH # Deploy the dev if it's not the production branch
- test "$TRAVIS_BRANCH" == "$UAT_BRANCH" -a "$TRAVIS_EVENT_TYPE" == "push" && git push test HEAD:$TRAVIS_BRANCH # Deploy the prod.branc to UAT env
- rm -f .travis/deploy.key

notifications:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
depends_on:
- db
- sentry
image: orcidhub/app-dev
image: orcidhub/app-dev:3.6
environment:
- ENV
- SHIB_SP_DOMAINNAME
Expand Down

0 comments on commit 9261c8b

Please sign in to comment.