-
Notifications
You must be signed in to change notification settings - Fork 187
/
appveyor.yml
39 lines (34 loc) · 1.1 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
branches:
only:
- master
- /^v?[0-9]/
environment:
GYP_MSVS_VERSION: 2013
matrix:
- node_version: '4'
- node_version: '5'
- node_version: '6'
install:
- ps: Install-Product node $env:node_version $env:platform
- ps: npm install -g node-gyp node-pre-gyp-github
# This fixes an issue with Node 4.x on x86. If it builds without this line
# needing to be set, we can remove it.
- ps: npm config -g set node-gyp "$(npm config -g get prefix)\node_modules\node-gyp\bin\node-gyp.js"
- ps: if ($env:appveyor_repo_tag -match "true" -and $env:appveyor_repo_tag_name -match '^v?[0-9]') { $publish_binary=1; }
build_script:
- ps: echo $publish_binary
- ps: |
$ErrorActionPreference = 'Continue'
git submodule update --init 2>&1 | write-host
npm install --build-from-source 2>&1 | write-host
./node_modules/.bin/node-pre-gyp package 2>&1 | write-host
if ($publish_binary -Eq "1") {
node-pre-gyp-github publish 2>&1 | write-host
if (-Not ($?)) {
throw "Failed publishing";
}
}
echo "done."
platform:
- x86
- x64