Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 30 additions & 9 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
os: Visual Studio 2015
# http://www.appveyor.com/docs/appveyor-yml

image:
- Visual Studio 2022

environment:
matrix:
- nodejs_version: 10
- nodejs_version: 12
- nodejs_version: 14
- nodejs_version: 16
- nodejs_version: 18
- nodejs_version: 20

platform:
- x64
Expand All @@ -13,17 +16,35 @@ platform:
shallow_clone: true

install:
- ps: Install-Product node $env:nodejs_version $env:Platform
- ps: Install-Product node $env:nodejs_version $env:platform
- ps: Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
- npm config get
- node --version
- npm --version
- node -e "console.log(process.arch);"
- IF /I "%PLATFORM%" == "x64" set PATH=C:\Python27-x64;%PATH%
- IF /I "%PLATFORM%" == "x86" SET PATH=C:\python27;%PATH%
- IF /I "%PLATFORM%" == "x64" CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
- IF /I "%PLATFORM%" == "x86" CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
- py --list-paths
# - pwd || true
# - ls -la || true
# - ls -la /c/ || true
# - ls -la "/c/Program Files (x86)" || true
# - export VCINSTALLDIR="/c/Program Files (x86)/Microsoft Visual Studio/Installer"
# - set VCINSTALLDIR "/c/Program Files (x86)/Microsoft Visual Studio/Installer"
# - set VCINSTALLDIR "C:\Program Files\Microsoft Visual Studio\2022\Community"
- set msvs_version=2022
# - npm config set VCINSTALLDIR "C:\Program Files (x86)\Microsoft Visual Studio\Installer"
- npm config set msvs_version 2022 || true
#- IF /I "%PLATFORM%" == "x64" npm config set npm_config_python C:\Python311-x64\python.exe
#- IF /I "%PLATFORM%" == "x86" npm config set npm_config_python C:\Python311\python.exe
- npm config list || true
# - ls -laR $VCINSTALLDIR || true
# - ls -laR "%VCINSTALLDIR%" || true
# - ls -la "/c/Program Files (x86)/Microsoft Visual Studio/2022/Community/VC/vcvarsall.bat" || true
- IF /I "%PLATFORM%" == "x64" set PATH=C:\Python311-x64;%PATH%
- IF /I "%PLATFORM%" == "x86" SET PATH=C:\python311;%PATH%
# - IF /I "%PLATFORM%" == "x64" CALL "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" amd64
# - IF /I "%PLATFORM%" == "x86" CALL "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" x86
- npm ci
# - npm audit
- npm test

build: off
Expand Down
4 changes: 2 additions & 2 deletions test/run.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ function run(prog, command, args, app, opts, cb) {
opts.cwd = path.join(__dirname, app.name);
}

// Test building with msvs 2015 since that is more edge case than 2013
// Test building with msvs 2022
if (process.platform === 'win32') {
final_cmd += ' --msvs_version=2015 ';
final_cmd += ' --msvs_version=2022 ';
}

// finish appending all arguments
Expand Down