Skip to content

Commit 1103e3b

Browse files
committed
travis: when pull request, build with ci files in master branch
Signed-off-by: jingru <[email protected]>
1 parent 26b0b86 commit 1103e3b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ branches:
3737
- gh-pages
3838

3939
before_install:
40-
- bash .ci/before_install.sh
4140
# setup git config
4241
- git config --global user.name "embARC Automated Bot"
4342
- git config --global user.email "[email protected]"
43+
- >
44+
if [ "TRAVIS_PULL_REQUEST" != "false" ]; then
45+
git checkout remotes/origin/master -- .ci
46+
- bash .ci/before_install.sh
4447

4548
after_success:
4649
- bash -c "$STATUS" success "Local $NAME testing has passed"

0 commit comments

Comments
 (0)