Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 67b1181

Browse files
aweingartengrasmash
authored andcommitted
Updated deployment code and documentation for travis-ci. (#492)
1 parent e2b8878 commit 67b1181

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

readme/ci.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,21 @@ To set up this workflow, you must configure Acquia Cloud, GitHub, and Travis CI
6363
1. Commits or merges to the develop branch on GitHub should now trigger a fully built artifact to be deployed to your specified remotes.
6464

6565
For information on manually deploying your project, read [deploy.md](deploy.md)
66+
67+
### Setting Up Travis CI for automated deployments on multiple branches
68+
You can monitor multiple branches on github for deployment, for example master and integration, by adding another "provider" block to the deploy section of your project's .travis file. You can add as many provider blocks as needed.
69+
70+
````
71+
deploy:
72+
- provider: script
73+
script: blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="${TRAVIS_BRANCH}-build"
74+
skip_cleanup: true
75+
on:
76+
branch: master
77+
78+
- provider: script
79+
script: blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="${TRAVIS_BRANCH}-build"
80+
skip_cleanup: true
81+
on:
82+
branch: integration
83+
````

scripts/travis/.travis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,15 @@ script:
6464
- blt -Dbehat.run-server=true -Dcreate_alias=false -Dbehat.launch-phantom=true ci:build:validate:test
6565

6666
deploy:
67-
provider: script
68-
script: blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="${TRAVIS_BRANCH}-build"
69-
skip_cleanup: true
70-
on:
71-
branch: master
67+
- provider: script
68+
script: blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="${TRAVIS_BRANCH}-build"
69+
skip_cleanup: true
70+
on:
71+
branch: master
72+
# Uncomment the following section to perform deployments on more than one branch.
73+
# This pattern be repeated for multiple integration branches.
74+
# - provider: script
75+
# script: blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="${TRAVIS_BRANCH}-build"
76+
# skip_cleanup: true
77+
# on:
78+
# branch: integration

0 commit comments

Comments
 (0)