File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ cache:
1010 directories :
1111 - ./node_modules
1212
13+ stages :
14+ - build
15+ - test
16+ - name : optional
17+ if : (NOT type IN (pull_request)) AND (branch = master)
18+ - deploy
19+
1320matrix :
1421 fast_finish : true
1522 allow_failures :
@@ -18,12 +25,14 @@ matrix:
1825 - node_js : " 7"
1926 - node_js : " 8"
2027 include :
28+ # Build stage
2129 - stage : build
2230 script : npm run lint
2331 env : lint
2432 - script : npm run build
2533 env : build
2634
35+ # Test stage
2736 - stage : test
2837 script : npm run test
2938 env : test
@@ -48,33 +57,30 @@ matrix:
4857 script : node tests/run_e2e.js --eject "--glob=tests/build/**"
4958 env : eject
5059
51- # Optional builds.
52- - node_js : " 6"
60+ # Optional stage.
61+ - stage : optional
62+ node_js : " 6"
5363 os : linux
54- before_script : if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
5564 script : node tests/run_e2e.js --ng2 "--glob=tests/build/**"
5665 env : ng2
5766 - node_js : " 6"
5867 os : linux
59- before_script : if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
6068 script : node tests/run_e2e.js --ng4 "--glob=tests/build/**"
6169 env : ng4
6270 - node_js : " 6"
6371 os : linux
64- before_script : if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
6572 script : node tests/run_e2e.js --nightly "--glob=tests/build/**"
6673 env : nightly
6774 - node_js : " 7"
6875 os : linux
69- before_script : if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
7076 script : node tests/run_e2e.js "--glob=tests/build/**"
7177 env : node7
7278 - node_js : " 8"
7379 os : linux
74- before_script : if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
7580 script : node tests/run_e2e.js "--glob=tests/build/**"
7681 env : node8
7782
83+ # Deploy stage
7884 - stage : deploy
7985 script : skip
8086 env : builds
@@ -84,8 +90,7 @@ matrix:
8490 skip_cleanup : true
8591 on :
8692 all_branches : true
87- - stage : deploy
88- script : skip
93+ - script : skip
8994 env : publish
9095 deploy :
9196 - provider : script
You can’t perform that action at this time.
0 commit comments