Skip to content

Commit 3830a4e

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

File tree

1 file changed

+28
-12
lines changed

1 file changed

+28
-12
lines changed

appveyor.yml

Lines changed: 28 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,9 @@ environment:
2324
matrix:
2425
# fast_finish: true
2526
allow_failures:
26-
- nodejs_version: "5" # due to windows npm bug, registry-side
27+
- nodejs_version: "5" # "Missing required argument #1" npm bug
2728
- nodejs_version: "0.8"
29+
platform: x86
2830
- nodejs_version: "0.6"
2931

3032
platform:
@@ -33,17 +35,31 @@ platform:
3335

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

4864
# Post-install test scripts.
4965
test_script:

0 commit comments

Comments
 (0)