This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Commit 31561c5 1 parent 1e452fb commit 31561c5 Copy full SHA for 31561c5
File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ script:
52
52
- ../bolted8/bolt.sh build:validate:test -Dbehat.run-server=true -Dbehat.launch-phantom=true
53
53
# Deploy build artifact.
54
54
- export DEPLOY_PR=true
55
- - ../bolted8/scripts/deploy/travis-deploy.sh 8.x 8.x-build
55
+ - ../bolted8/scripts/deploy/travis-deploy.sh 8.x
56
56
# Validate and run 'bolt' phpunit tests.
57
57
- phpcs --standard=../bolted8/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml tests
58
58
- phpunit tests
Original file line number Diff line number Diff line change 2
2
3
3
<target name =" deploy:artifact" description =" Builds separate artifact and pushes to git.remotes defined project.yml." >
4
4
5
- <!-- deploy.branch and deploy. commitMsg must be passed as params at runtime. -->
5
+ <!-- deploy.commitMsg must be passed as a param at runtime. -->
6
6
<if >
7
7
<or >
8
- <not ><isset property =" deploy.branch" /></not >
9
8
<not ><isset property =" deploy.commitMsg" /></not >
10
9
</or >
11
10
<then >
12
- <fail >You must pass deploy.branch and deploy. commitMsg as runtime parameters .</fail >
11
+ <fail >You must pass deploy.commitMsg as a runtime parameter .</fail >
13
12
<echo message =" Command should match syntax:" />
14
- <echo message =" ./bolt.sh deploy:artifact -Ddeploy.branch=8.x-build -Ddeploy. commitMsg='BLT-123: The commit message.'" />
13
+ <echo message =" ./bolt.sh deploy:artifact -Ddeploy.commitMsg='BLT-123: The commit message.'" />
15
14
</then >
16
15
</if >
17
16
39
38
<exec command =" git remote add ${remoteName} ${deploy.remote}" dir =" ${deploy.dir}" logoutput =" true" passthru =" true" />
40
39
<exec command =" git fetch ${remoteName}" dir =" ${deploy.dir}" logoutput =" true" passthru =" true" />
41
40
42
- <!-- Create the new branch. -->
41
+ <!-- Create the new branch, "[source-branch-name]-build". -->
42
+ <property name =" deploy.branch" value =" ${git.current_branch}-build" />
43
43
<exec command =" git checkout -b ${deploy.branch}" dir =" ${deploy.dir}" logoutput =" true" passthru =" true" />
44
+
44
45
<!-- Pull the latest updates (if available). -->
45
46
<exec command =" git merge ${remoteName}/${deploy.branch}" dir =" ${deploy.dir}" logoutput =" true" passthru =" true" />
46
47
</target >
Original file line number Diff line number Diff line change 3
3
# What does this script do?
4
4
# This script will watch for a Travis build on a specific
5
5
# $source_branch on the canonical GitHub repository and deploy build artifacts
6
- # to $dest_branch on the git.remote specified in project.yml.
6
+ # to [source-branch]-build on the git.remote specified in project.yml.
7
7
8
8
# How to use this script?
9
9
# This script should be executed in the `after_success` section of .travis.yml.
10
10
# It requires two arguments. Example call:
11
11
# `scripts/deploy/travis-deploy.sh master master-build`
12
12
13
13
source_branch=$1 # The branch to watch.
14
- dest_branch=$2 # The branch to which the build artifact should be committed and deployed.
15
14
DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
16
15
17
16
# Note that the canonical repository is watched. Commits to forked repositories
@@ -27,7 +26,7 @@ if [[ "${TRAVIS_PULL_REQUEST}" = "false" ]] || [[ "${DEPLOY_PR}" = "true" ]];
27
26
echo " Build artifact will be deployed."
28
27
commit_msg=" Automated commit by Travis CI for Build #${TRAVIS_BUILD_ID} " ;
29
28
# Call the `deploy` Phing target, passing in required parameters.
30
- ${DIR} /../../bolt.sh deploy:artifact -Ddeploy.branch= " ${dest_branch} " -Ddeploy. commitMsg=" ${commit_msg} " ;
29
+ ${DIR} /../../bolt.sh deploy:artifact -Ddeploy.commitMsg=" ${commit_msg} " ;
31
30
else
32
31
echo " Build artifact will NOT be deployed for this branch."
33
32
fi
You can’t perform that action at this time.
0 commit comments