File tree Expand file tree Collapse file tree 2 files changed +43
-11
lines changed Expand file tree Collapse file tree 2 files changed +43
-11
lines changed Original file line number Diff line number Diff line change
1
+ sudo : false
2
+
3
+ git :
4
+ depth : 10
5
+
6
+ branches :
7
+ only :
8
+ - master
9
+ - next
10
+
1
11
language : node_js
2
12
3
- jobs :
13
+ cache :
14
+ directories :
15
+ - node_modules
16
+ - $HOME/.npm
17
+
18
+ matrix :
4
19
fast_finish : true
5
20
include :
6
- - stage : Lint
7
- env : SCRIPT=lint
21
+ - env : JOB_PART=lint
8
22
node_js : 6
9
23
- &test
10
- stage : Test
11
- env : SCRIPT=test
24
+ env : JOB_PART=test
12
25
node_js : 6
13
26
- << : *test
14
27
node_js : 8
@@ -17,11 +30,19 @@ jobs:
17
30
- << : *test
18
31
node_js : 11
19
32
20
- script : npm run $SCRIPT
33
+ before_install :
34
+ - npm i -g npm@latest
35
+
36
+ install :
37
+ - npm ci
38
+
39
+ before_script :
40
+ - node --version
41
+ - npm --version
42
+
43
+ script :
44
+ - npm run $JOB_PART
21
45
22
46
after_success :
23
47
- npm i codecov
24
48
- $(npm bin)/codecov
25
-
26
- notifications :
27
- email : false
Original file line number Diff line number Diff line change 1
1
build : ' off'
2
2
3
+ branches :
4
+ only :
5
+ - master
6
+ - next
7
+
3
8
init :
4
9
- git config --global core.autocrlf input
5
10
11
+ cache :
12
+ - node_modules
13
+ - ' %APPDATA%\npm-cache'
14
+
6
15
environment :
7
16
matrix :
8
17
- nodejs_version : ' 11'
@@ -20,10 +29,12 @@ matrix:
20
29
install :
21
30
- ps : Install-Product node $env:nodejs_version x64
22
31
- npm i -g npm@latest
23
- - npm install
32
+ - npm ci
24
33
25
34
before_test :
26
35
- cmd : npm i webpack@%webpack_version%
27
36
28
37
test_script :
29
- - cmd : npm t
38
+ - node --version
39
+ - npm --version
40
+ - cmd : npm test
You can’t perform that action at this time.
0 commit comments