-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathappveyor.yml
50 lines (44 loc) · 1.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
# http://www.appveyor.com/docs/appveyor-yml
# This image contains both 2013 and 2015
os: Visual Studio 2015
# Test against these versions of Node.js.
environment:
matrix:
- nodejs_version: "4"
GYP_MSVS_VERSION: "2013"
- nodejs_version: "4"
GYP_MSVS_VERSION: "2015"
- nodejs_version: "6"
GYP_MSVS_VERSION: "2013"
- nodejs_version: "6"
GYP_MSVS_VERSION: "2015"
- nodejs_version: "8"
GYP_MSVS_VERSION: "2013"
- nodejs_version: "8"
GYP_MSVS_VERSION: "2015"
- nodejs_version: "10"
GYP_MSVS_VERSION: "2015"
- nodejs_version: "12"
GYP_MSVS_VERSION: "2015"
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
# Install AutoIt in order to automate installation of npcap
- choco install -y autoit
# Download and install latest npcap with WinPCap compatibility
- start "" /WAIT autoit3 test\npcap-install.au3
# Start build
- set CL=-DDELAYIMP_INSECURE_WRITABLE_HOOKS
- npm install
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- 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.
version: "{build}"