-
Notifications
You must be signed in to change notification settings - Fork 509
/
Copy pathappveyor.yml
70 lines (62 loc) · 2.32 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# http://www.appveyor.com/docs/appveyor-yml
# https://www.appveyor.com/docs/windows-images-software
# https://nodejs.org/en/about/previous-releases
# https://devguide.python.org/versions
# Test supported Node.js versions before unsupported versions.
# Run on the most current Visual Studio possible for each nodejs_version.
# Run on the earliest supported Python version when possible (currently py39).
# For all supported Node.js versions test also on the latest Python (currently py313).
image:
- Visual Studio 2022
environment:
NODE_GYP_FORCE_PYTHON: C:\Python39-x64\python.exe
matrix: # Test against these versions of Io.js and Node.js.
# - nodejs_version: "23" # Enable after nodejs/nan#979 or similar.
- nodejs_version: "22"
- nodejs_version: "22"
NODE_GYP_FORCE_PYTHON: C:\Python312-x64\python.exe
- nodejs_version: "21"
- nodejs_version: "20"
- nodejs_version: "19"
- nodejs_version: "18"
- nodejs_version: "17"
- nodejs_version: "16"
- nodejs_version: "14"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- nodejs_version: "12"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- nodejs_version: "10"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- nodejs_version: "8"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
matrix:
fast_finish: true
# Install scripts. (runs after repo cloning)
install:
# Output useful info for debugging.
- node --version
- npm --version
- py --list
- py -VV # py is 64-bit AMD64 Python 3 on Visual Studio images
- python -VV # python is 32-bit Intel Python 3 on Visual Studio images
# Get the latest stable version of Node 0.STABLE.latest
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) x64
- node --version
- set PATH=%APPDATA%\npm;%PATH%
# Typical npm stuff.
- npm install
- npm run rebuild-tests
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
- py --list
- py -VV # py is 64-bit AMD64 Python 3 on Visual Studio images
- python -VV # python is 32-bit Intel Python 3 on Visual Studio images
# run tests
- node node_modules\tap\bin\tap.js --gc test/js/*-test.js
# Don't actually build.
build: off
# Set build version format here instead of in the admin panel.
version: "{build}"