Skip to content

Commit dfda431

Browse files
committed
[Test] update appveyor config
1 parent edfe3f7 commit dfda431

File tree

1 file changed

+27
-12
lines changed

1 file changed

+27
-12
lines changed

appveyor.yml

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ build: off
44

55
environment:
66
matrix:
7+
- nodejs_version: "13"
78
- nodejs_version: "12"
89
- nodejs_version: "11"
910
- nodejs_version: "10"
@@ -23,8 +24,8 @@ environment:
2324
matrix:
2425
# fast_finish: true
2526
allow_failures:
26-
- nodejs_version: "5" # due to windows npm bug, registry-side
2727
- nodejs_version: "0.8"
28+
platform: x86
2829
- nodejs_version: "0.6"
2930

3031
platform:
@@ -33,17 +34,31 @@ platform:
3334

3435
# Install scripts. (runs after repo cloning)
3536
install:
36-
# Fix symlinks in working copy (see https://github.com/appveyor/ci/issues/650#issuecomment-186592582) / https://github.com/charleskorn/batect/commit/d08986802ec43086902958c4ee7e57ff3e71dbef
37-
- git config core.symlinks true
38-
- git reset --hard
39-
# Get the latest stable version of Node.js or io.js
40-
- ps: Install-Product node $env:nodejs_version $env:platform
41-
- IF %nodejs_version% EQU 0.6 npm config set strict-ssl false && npm -g install [email protected]
42-
- IF %nodejs_version% EQU 0.8 npm config set strict-ssl false && npm -g install [email protected] && npm install -g [email protected]
43-
- set PATH=%APPDATA%\npm;%PATH%
44-
#- IF %nodejs_version% NEQ 0.6 AND %nodejs_version% NEQ 0.8 npm -g install npm
45-
# install modules
46-
- npm install
37+
# Fix symlinks in working copy (see https://github.com/appveyor/ci/issues/650#issuecomment-186592582) / https://github.com/charleskorn/batect/commit/d08986802ec43086902958c4ee7e57ff3e71dbef
38+
- git config core.symlinks true
39+
- git reset --hard
40+
# Get the latest stable version of Node.js or io.js
41+
- ps: if ($env:nodejs_version -ne '0.6') { Install-Product node $env:nodejs_version $env:platform }
42+
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
43+
- IF %nodejs_version% EQU 0.6 npm config set strict-ssl false && npm -g install [email protected]
44+
- IF %nodejs_version% EQU 0.8 npm config set strict-ssl false && npm -g install [email protected] && npm install -g [email protected]
45+
- IF %nodejs_version% EQU 1 npm -g install [email protected]
46+
- IF %nodejs_version% EQU 2 npm -g install npm@4
47+
- IF %nodejs_version% EQU 3 npm -g install npm@4
48+
- IF %nodejs_version% EQU 4 npm -g install [email protected]
49+
- IF %nodejs_version% EQU 5 npm -g install [email protected]
50+
- IF %nodejs_version% EQU 6 npm -g install [email protected]
51+
- IF %nodejs_version% EQU 7 npm -g install npm
52+
- IF %nodejs_version% EQU 8 npm -g install npm
53+
- IF %nodejs_version% EQU 9 npm -g install [email protected]
54+
- IF %nodejs_version% EQU 10 npm -g install npm
55+
- IF %nodejs_version% EQU 11 npm -g install npm
56+
- IF %nodejs_version% EQU 12 npm -g install npm
57+
- IF %nodejs_version% EQU 13 npm -g install npm
58+
- set PATH=%APPDATA%\npm;%PATH%
59+
#- IF %nodejs_version% NEQ 0.6 AND %nodejs_version% NEQ 0.8 npm -g install npm
60+
# install modules
61+
- npm install
4762

4863
# Post-install test scripts.
4964
test_script:

0 commit comments

Comments
 (0)