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:
10
10
directories :
11
11
- ./node_modules
12
12
13
+ stages :
14
+ - build
15
+ - test
16
+ - name : optional
17
+ if : (NOT type IN (pull_request)) AND (branch = master)
18
+ - deploy
19
+
13
20
matrix :
14
21
fast_finish : true
15
22
allow_failures :
@@ -18,12 +25,14 @@ matrix:
18
25
- node_js : " 7"
19
26
- node_js : " 8"
20
27
include :
28
+ # Build stage
21
29
- stage : build
22
30
script : npm run lint
23
31
env : lint
24
32
- script : npm run build
25
33
env : build
26
34
35
+ # Test stage
27
36
- stage : test
28
37
script : npm run test
29
38
env : test
@@ -48,33 +57,30 @@ matrix:
48
57
script : node tests/run_e2e.js --eject "--glob=tests/build/**"
49
58
env : eject
50
59
51
- # Optional builds.
52
- - node_js : " 6"
60
+ # Optional stage.
61
+ - stage : optional
62
+ node_js : " 6"
53
63
os : linux
54
- before_script : if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
55
64
script : node tests/run_e2e.js --ng2 "--glob=tests/build/**"
56
65
env : ng2
57
66
- node_js : " 6"
58
67
os : linux
59
- before_script : if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
60
68
script : node tests/run_e2e.js --ng4 "--glob=tests/build/**"
61
69
env : ng4
62
70
- node_js : " 6"
63
71
os : linux
64
- before_script : if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
65
72
script : node tests/run_e2e.js --nightly "--glob=tests/build/**"
66
73
env : nightly
67
74
- node_js : " 7"
68
75
os : linux
69
- before_script : if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
70
76
script : node tests/run_e2e.js "--glob=tests/build/**"
71
77
env : node7
72
78
- node_js : " 8"
73
79
os : linux
74
- before_script : if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
75
80
script : node tests/run_e2e.js "--glob=tests/build/**"
76
81
env : node8
77
82
83
+ # Deploy stage
78
84
- stage : deploy
79
85
script : skip
80
86
env : builds
@@ -84,8 +90,7 @@ matrix:
84
90
skip_cleanup : true
85
91
on :
86
92
all_branches : true
87
- - stage : deploy
88
- script : skip
93
+ - script : skip
89
94
env : publish
90
95
deploy :
91
96
- provider : script
You can’t perform that action at this time.
0 commit comments