File tree Expand file tree Collapse file tree 1 file changed +41
-18
lines changed Expand file tree Collapse file tree 1 file changed +41
-18
lines changed Original file line number Diff line number Diff line change
1
+ version : ' {build}'
2
+ skip_branch_with_pr : true
3
+ build : off
4
+ shallow_clone : true
5
+ clone_depth : 1
6
+
1
7
environment :
2
8
matrix :
3
- - nodejs_version : ' 4'
4
- - nodejs_version : ' 5'
5
- - nodejs_version : ' 6'
6
- - nodejs_version : ' 7'
7
- - nodejs_version : ' 8'
8
- install :
9
- - ps : Install-Product node $env:nodejs_version
10
- - set CI=true
11
- - npm -g install npm@latest
12
- - set PATH=%APPDATA%\npm;%PATH%
13
- - npm install
9
+ - nodejs_version : " 10"
10
+ - nodejs_version : " 9"
11
+ - nodejs_version : " 8"
12
+ - nodejs_version : " 7"
13
+ - nodejs_version : " 6"
14
+ - nodejs_version : " 5"
15
+ - nodejs_version : " 4"
14
16
matrix :
15
17
fast_finish : true
16
- build : off
17
- version : ' {build}'
18
- shallow_clone : true
19
- clone_depth : 1
18
+ allow_failures :
19
+ - nodejs_version : " 9"
20
+ - nodejs_version : " 7"
21
+ - nodejs_version : " 5"
22
+
23
+ platform :
24
+ - x86
25
+ - x64
26
+
27
+ # Install scripts. (runs after repo cloning)
28
+ install :
29
+ # Get the latest stable version of Node.js or io.js
30
+ - ps : Install-Product node $env:nodejs_version $env:platform
31
+ - set CI=true
32
+ -
IF %nodejs_version% EQU 0.6 npm -g install [email protected]
33
+ - IF %nodejs_version% EQU 0.8 npm -g install npm@2
34
+ - IF %nodejs_version% LSS 6 npm -g install npm@5
35
+ - IF %nodejs_version% GEQ 6 npm -g install npm@6
36
+ - set PATH=%APPDATA%\npm;%PATH%
37
+ # install modules
38
+ - npm install
39
+
40
+ # Post-install test scripts.
20
41
test_script :
21
- - node --version
22
- - npm --version
23
- - npm test
42
+ # Output useful info for debugging.
43
+ - node --version
44
+ - npm --version
45
+ # run tests
46
+ - npm run unit-test
You can’t perform that action at this time.
0 commit comments