Skip to content

Commit 230b0ad

Browse files
committed
[Tests] fix appveyor
1 parent d68ef96 commit 230b0ad

File tree

1 file changed

+41
-18
lines changed

1 file changed

+41
-18
lines changed

appveyor.yml

Lines changed: 41 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,46 @@
1+
version: '{build}'
2+
skip_branch_with_pr: true
3+
build: off
4+
shallow_clone: true
5+
clone_depth: 1
6+
17
environment:
28
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"
1416
matrix:
1517
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.
2041
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

0 commit comments

Comments
 (0)