File tree 2 files changed +38
-20
lines changed
2 files changed +38
-20
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
13
cache :
4
14
directories :
5
15
- node_modules
16
+ - $HOME/.npm
6
17
7
- jobs :
18
+ matrix :
8
19
fast_finish : true
9
20
include :
10
- - stage : Lint
11
- env : SCRIPT=lint
12
- node_js : ' stable'
21
+ - env : JOB_PART=lint
22
+ node_js : 11
13
23
- &linux
14
- stage : Test (Linux)
15
- env : SCRIPT=test
16
- node_js : ' stable'
17
- - << : *linux
24
+ env : JOB_PART=test
18
25
node_js : 11
19
26
- << : *linux
20
27
node_js : 10
23
30
- << : *linux
24
31
node_js : 6
25
32
- &osx
26
- stage : Test (MacOS)
27
33
os : ' osx'
28
- env : SCRIPT =test
34
+ env : JOB_PART =test
29
35
node_js : 11
30
36
- << : *osx
31
37
node_js : 10
@@ -34,15 +40,19 @@ jobs:
34
40
- << : *osx
35
41
node_js : 6
36
42
37
- install :
43
+ before_install :
38
44
- npm i -g npm@latest
39
- - npm i
40
45
41
- script : npm run $SCRIPT
46
+ install :
47
+ - npm ci
48
+
49
+ before_script :
50
+ - node --version
51
+ - npm --version
52
+
53
+ script :
54
+ - npm run $SCRIPT
42
55
43
56
after_success :
44
57
- npm i codecov
45
58
- $(npm bin)/codecov
46
-
47
- notifications :
48
- email : false
Original file line number Diff line number Diff line change 1
1
build : ' off'
2
2
3
- cache :
4
- - node_modules
3
+ branches :
4
+ only :
5
+ - master
6
+ - next
5
7
6
8
init :
7
9
- git config --global core.autocrlf input
8
10
11
+ cache :
12
+ - node_modules
13
+ - ' %APPDATA%\npm-cache'
14
+
9
15
environment :
10
16
matrix :
11
17
- nodejs_version : ' 11'
@@ -23,10 +29,12 @@ matrix:
23
29
install :
24
30
- ps : Install-Product node $env:nodejs_version x64
25
31
- npm i -g npm@latest
26
- - npm i
32
+ - npm ci
27
33
28
34
before_test :
29
35
- cmd : npm i webpack@%webpack_version%
30
36
31
37
test_script :
32
- - 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