forked from pierreinglebert/node-zopfli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
67 lines (56 loc) · 1.87 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
# 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: "0.12"
platform: x64
- nodejs_version: "4"
platform: x86
- nodejs_version: "4"
platform: x64
- nodejs_version: "5"
platform: x64
- nodejs_version: "6"
platform: x64
- nodejs_version: "7"
platform: x64
matrix:
fast_finish: true
install:
# Get zopfli submodule
- git submodule update --init --recursive
- ps: Install-Product node $env:nodejs_version $env:platform
# Install newer npm
- npm install -g npm@3
- 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
- ps: >-
if ($env:APPVEYOR_REPO_COMMIT_MESSAGE.ToLower().Contains("[publish binary]")) {
cmd /c 'node_modules\.bin\node-pre-gyp --msvs_version=2015 package publish 2>&1'
}
cache:
- 'node_modules -> package.json' # local npm modules
build: off
test: off
deploy: off