Skip to content

Commit 6db7a49

Browse files
cclausskkoopa
authored andcommitted
AppVeyor: Test and support versions 8, 10, 12, 14, 16, 17, 18, 19, 20, 21, and 22 (#983)
* AppVeyor: Test on a supported version of Python Python 3.9 is the oldest version of Python that is supported. * https://devguide.python.org/versions * node-gyp > v10 * versions 8, 10, 12, 14, 16, 17, 18, 19, 20, 21, and 22
1 parent 7cdefbb commit 6db7a49

File tree

3 files changed

+44
-35
lines changed

3 files changed

+44
-35
lines changed

.github/workflows/ci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ jobs:
3131
os: windows-2025
3232
- node-version: 14.x
3333
os: windows-2019
34-
- node-version: 13.x
35-
os: windows-2019
3634
- node-version: 12.x
3735
os: windows-2019
3836
- node-version: 10.x

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Native Abstractions for Node.js
22
===============================
33

4-
**A header file filled with macro and utility goodness for making add-on development for Node.js easier across versions 0.8, 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 and 23.**
4+
**A header file filled with macro and utility goodness for making add-on development for Node.js easier across versions 8, 10, 12, 14, 16, 17, 18, 19, 20, 21, and 22.**
55

66
***Current version: 2.22.0***
77

appveyor.yml

+43-32
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,67 @@
11
# http://www.appveyor.com/docs/appveyor-yml
2+
# https://www.appveyor.com/docs/windows-images-software
3+
# https://nodejs.org/en/about/previous-releases
4+
# https://devguide.python.org/versions
5+
6+
# Test supported Node.js versions before unsupported versions.
7+
# Run on the most current Visual Studio possible for each nodejs_version.
8+
# Run on the earliest supported Python version when possible (currently py39).
9+
# For all supported Node.js versions test also on the latest Python (currently py313).
210

311
image:
4-
- Visual Studio 2017
12+
- Visual Studio 2022
513

6-
# Test against these versions of Io.js and Node.js.
714
environment:
8-
matrix:
9-
# node.js
10-
- nodejs_version: "0.10"
11-
- nodejs_version: "0.12"
12-
- nodejs_version: "4"
13-
- nodejs_version: "5"
14-
- nodejs_version: "6"
15-
- nodejs_version: "7"
16-
- nodejs_version: "8"
17-
- nodejs_version: "9"
18-
- nodejs_version: "10"
19-
- nodejs_version: "11"
20-
- nodejs_version: "12"
21-
- nodejs_version: "13"
22-
- nodejs_version: "14"
23-
- nodejs_version: "15"
24-
- nodejs_version: "16"
25-
- nodejs_version: "17"
26-
- nodejs_version: "18"
27-
- nodejs_version: "19"
28-
- nodejs_version: "20"
15+
NODE_GYP_FORCE_PYTHON: C:\Python39-x64\python.exe
16+
matrix: # Test against these versions of Io.js and Node.js.
17+
# - nodejs_version: "23" # Enable after nodejs/nan#979 or similar.
18+
- nodejs_version: "22"
19+
- nodejs_version: "22"
20+
NODE_GYP_FORCE_PYTHON: C:\Python312-x64\python.exe
2921
- nodejs_version: "21"
30-
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
31-
nodejs_version: "22"
32-
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
33-
nodejs_version: "23"
22+
- nodejs_version: "20"
23+
- nodejs_version: "19"
24+
- nodejs_version: "18"
25+
- nodejs_version: "17"
26+
- nodejs_version: "16"
27+
- nodejs_version: "14"
28+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
29+
- nodejs_version: "12"
30+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
31+
- nodejs_version: "10"
32+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
33+
- nodejs_version: "8"
34+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
35+
36+
matrix:
37+
fast_finish: true
3438

3539
# Install scripts. (runs after repo cloning)
3640
install:
41+
# Output useful info for debugging.
42+
- node --version
43+
- npm --version
44+
- py --list
45+
- py -VV # py is 64-bit AMD64 Python 3 on Visual Studio images
46+
- python -VV # python is 32-bit Intel Python 3 on Visual Studio images
3747
# Get the latest stable version of Node 0.STABLE.latest
3848
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) x64
39-
- IF %nodejs_version% LSS 4 npm -g install npm@2
40-
- IF %nodejs_version% EQU 5 npm -g install npm@3
49+
- node --version
4150
- set PATH=%APPDATA%\npm;%PATH%
4251
# Typical npm stuff.
4352
- npm install
44-
- IF %nodejs_version% GEQ 22 set NODE_GYP_FORCE_PYTHON=C:\Python38-x64\python.exe
45-
- IF %nodejs_version% LSS 8 (npm run rebuild-tests-2015) ELSE (npm run rebuild-tests)
53+
- npm run rebuild-tests
4654

4755
# Post-install test scripts.
4856
test_script:
4957
# Output useful info for debugging.
5058
- node --version
5159
- npm --version
60+
- py --list
61+
- py -VV # py is 64-bit AMD64 Python 3 on Visual Studio images
62+
- python -VV # python is 32-bit Intel Python 3 on Visual Studio images
5263
# run tests
53-
- IF %nodejs_version% LSS 1 (npm test) ELSE (IF %nodejs_version% LSS 4 (iojs node_modules\tap\bin\tap.js --gc test/js/*-test.js) ELSE (node node_modules\tap\bin\tap.js --gc test/js/*-test.js))
64+
- node node_modules\tap\bin\tap.js --gc test/js/*-test.js
5465

5566
# Don't actually build.
5667
build: off

0 commit comments

Comments
 (0)