File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ before_install:
33
33
- export DISPLAY=:99.0
34
34
- ./scripts/travis/install.sh
35
35
before_script :
36
- - ./scripts/travis/setup.sh
37
36
- ./scripts/travis/rebase.sh
37
+ - ./scripts/travis/setup.sh
38
38
script :
39
39
- ./scripts/travis/build.sh
40
40
after_success :
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- # If we're on the branch which name is of the form branch1-q-branch2
5
- # and all the tests pass , push this branch as branch2 . Note that
6
- # branch1 would alreay have been rebased onto branch2 by this point.
4
+ # If we're on the branch which name is of the form branch1-q-*
5
+ # and all the tests have passed , push this branch as branch1 . Note that
6
+ # branch1-q-* would alreay have been rebased onto branch1 by this point.
7
7
8
8
echo ' ***************'
9
9
echo ' ** PRESUBMIT **'
@@ -18,11 +18,11 @@ echo Current branch is: $TRAVIS_BRANCH
18
18
echo Test result is: $TRAVIS_TEST_RESULT
19
19
20
20
if [ " $TRAVIS_REPO_SLUG " = " markovuksanovic/angular.dart" ]; then
21
- if [ $TRAVIS_TEST_RESULT -eq 0 ] && [[ $TRAVIS_BRANCH =~ ^(.* )-q-(. * ) $ ]]; then
21
+ if [ $TRAVIS_TEST_RESULT -eq 0 ] && [[ $TRAVIS_BRANCH =~ ^(.* )-q-. * $ ]]; then
22
22
echo " Pushing HEAD to ${BASH_REMATCH[2]} ..."
23
- if git push upstream HEAD:${BASH_REMATCH[2 ]} ; then
24
- echo " ${BASH_REMATCH[1 ]} has been merged into ${BASH_REMATCH[2 ]} , deleting..."
25
- git push upstream :" ${BASH_REMATCH[1 ]} "
23
+ if git push upstream HEAD:${BASH_REMATCH[1 ]} ; then
24
+ echo " ${BASH_REMATCH[0 ]} has been merged into ${BASH_REMATCH[1 ]} , deleting..."
25
+ git push upstream :" ${BASH_REMATCH[0 ]} "
26
26
fi
27
27
fi
28
28
fi
Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
# If we're on the branch which has the name of the form
5
- # branch1-q-branch2 we rebase branch1 onto branch2
6
- # If we're on the presubmit branch, the dev Dart release, and all unit
7
- # tests pass, merge the presubmit branch into master and push it.
5
+ # branch1-q-* we rebase branch1-q-* onto branch1.
6
+ # This will leave system in detached head state. After this
7
+ # tests will be run. Pushing the code into appropriate
8
+ # branch is done during in "after_success" phase.
8
9
9
10
echo ' ***************'
10
11
echo ' ** REBASE **'
@@ -18,9 +19,9 @@ echo Current channel is: $CHANNEL
18
19
echo Current branch is: $TRAVIS_BRANCH
19
20
20
21
if [ " $TRAVIS_REPO_SLUG " = " markovuksanovic/angular.dart" ]; then
21
- if [[ $TRAVIS_BRANCH =~ ^(.* )-q-(. * ) $ ]]; then
22
+ if [[ $TRAVIS_BRANCH =~ ^(.* )-q-. * $ ]]; then
22
23
FROM=${BASH_REMATCH[0]}
23
- ONTO=${BASH_REMATCH[2 ]}
24
+ ONTO=${BASH_REMATCH[1 ]}
24
25
git config credential.helper " store --file=.git/credentials"
25
26
# travis encrypt GITHUB_TOKEN_ANGULAR_ORG=??? --repo=angular/angular.dart
26
27
echo " https://${GITHUB_TOKEN_ANGULAR_ORG} :@github.com" > .git/credentials
You can’t perform that action at this time.
0 commit comments