Skip to content

Commit 489a3d6

Browse files
committed
ci: optionals only on branches
1 parent fe85750 commit 489a3d6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.travis.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,24 @@ matrix:
5454
# Optional builds.
5555
- node_js: "6"
5656
os: linux
57+
before_install: if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
5758
script: node tests/run_e2e.js --ng2 "--glob=tests/{build,test,misc}/**"
5859
env: ng2
59-
on:
60-
all_branches: true
6160
- node_js: "6"
6261
os: linux
62+
before_install: if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
6363
script: node tests/run_e2e.js "--nightly --glob=tests/{build,test,misc}/**"
6464
env: nightly
65-
on:
66-
all_branches: true
6765
- node_js: "7"
6866
os: linux
67+
before_install: if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
6968
script: node tests/run_e2e.js "--glob=tests/{build,test,misc}/**"
7069
env: node7
71-
on:
72-
all_branches: true
7370
- node_js: "8"
7471
os: linux
72+
before_install: if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
7573
script: node tests/run_e2e.js "--glob=tests/build/**"
7674
env: node8
77-
on:
78-
all_branches: true
7975

8076
- stage: deploy
8177
script: skip

0 commit comments

Comments
 (0)