Skip to content

Commit

Permalink
ci: fix VS image selection on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex committed Apr 30, 2019
1 parent 97e7d18 commit 641e2ed
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,42 @@
# http://www.appveyor.com/docs/appveyor-yml

# Test against these versions of Node.js.
environment:
matrix:
- nodejs_version: "4"
os: Visual Studio 2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GYP_MSVS_VERSION: "2013"
- nodejs_version: "4"
os: Visual Studio 2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GYP_MSVS_VERSION: "2015"
- nodejs_version: "6"
os: Visual Studio 2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GYP_MSVS_VERSION: "2013"
- nodejs_version: "6"
os: Visual Studio 2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GYP_MSVS_VERSION: "2015"
- nodejs_version: "8"
os: Visual Studio 2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GYP_MSVS_VERSION: "2013"
- nodejs_version: "8"
os: Visual Studio 2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GYP_MSVS_VERSION: "2015"
- nodejs_version: "10"
os: Visual Studio 2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GYP_MSVS_VERSION: "2015"
- nodejs_version: "12"
os: Visual Studio 2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GYP_MSVS_VERSION: "2017"


# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) x64
# Typical npm stuff.
- set CL=-DDELAYIMP_INSECURE_WRITABLE_HOOKS
- npm install

# Post-install test scripts.
test_script:
# Output useful info for debugging.
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- node --version
- npm --version
# run tests
- npm test

# Don't actually build.
build: off

# Set build version format here instead of in the admin panel.
shallow_clone: true
version: "{build}"

0 comments on commit 641e2ed

Please sign in to comment.