-
Notifications
You must be signed in to change notification settings - Fork 39
/
appveyor.yml
62 lines (51 loc) · 1.69 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
# http://www.appveyor.com/docs/appveyor-yml
clone_depth: 10
version: "{build}"
environment:
node_pre_gyp_accessKeyId:
secure: sNiYns5iJ4x7UzU3Vwt6cwjmSKlJnVYTNPj/wJxtHes=
node_pre_gyp_secretAccessKey:
secure: aqsNf2cyJ0hpprZZvwJ3bLeUeFjZ0OhbJSulfs9VLA4rqmADnnbU//aL/NBoXQQJ
matrix:
- nodejs_version: "10"
nodejs_arch: "x86"
- nodejs_version: "10"
nodejs_arch: "x64"
- nodejs_version: "12"
nodejs_arch: "x86"
- nodejs_version: "12"
nodejs_arch: "x64"
- nodejs_version: "16"
nodejs_arch: "x86"
- nodejs_version: "16"
nodejs_arch: "x64"
matrix:
fast_finish: true
install:
# Get zopfli submodule
- git submodule update --init --recursive
- ps: Get-WmiObject Win32_Processor
- ps: Install-Product node $env:nodejs_version $env:nodejs_arch
- ps: $env:path = $env:appdata + "\npm;" + $env:path
# work around an issue with node-gyp v3.3.1 and node 4x
# package.json has no certificates in it so we're cool
# https://github.com/nodejs/node-gyp/issues/921
- ps: npm config set -g cafile=package.json | Write-Host;
- ps: npm config set -g strict-ssl=false | Write-Host;
# Add local node-pre-gyp dir to path
- SET PATH=node_modules\.bin;%PATH%
# Use 64-bit Python if platform is 64-bit
- IF "%platform%" == "x64" SET "PATH=C:\Python27-x64;%PATH%"
- IF "%platform%" == "x64" CALL "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64
- IF "%platform%" == "x86" CALL "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86
# Print some information
- node -v
- npm -v
# Build
- npm install --build-from-source --msvs_version=2015
- npm test
cache:
- 'node_modules -> package.json' # local npm modules
build: off
test: off
deploy: off