-
Notifications
You must be signed in to change notification settings - Fork 14
/
appveyor.yml
48 lines (43 loc) · 1.4 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
os: unstable
environment:
NODE_PRE_GYP_GITHUB_TOKEN:
secure: ex3daTUjJEaSvxAKyUiPOiLjEoYhmisgN9YjzbdYvMhdu3YyZo56JyEcTPjKIhQz
matrix:
# support latest Nodejs LTS version
- nodejs_version: "10"
platform:
- x64
- x86
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version $env:platform
- set PATH=%APPDATA%\npm;%PATH%
# install submodules
- git submodule update --init
# install modules
- npm install -g node-gyp node-pre-gyp node-pre-gyp-github
- npm install --build-from-source
# Check if we're building the latest tag, if so
# then we publish the binaries if tests pass.
- ps: >
if ($env:APPVEYOR_REPO_COMMIT_MESSAGE.ToLower().Contains('[publish binary]') -OR $(git describe --tags --always HEAD) -eq $env:APPVEYOR_REPO_BRANCH) {
$env:publish_binary = "true";
}
if ($env:publish_binary -eq "true") {
"We're publishing a binary!" | Write-Host
} else {
"We're not publishing a binary" | Write-Host
}
true;
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm test
# publish binary
- ps: if ($env:publish_binary -eq "true") { node-pre-gyp configure clean build package; node-pre-gyp-github publish --release }
# Don't actually build.
build: off