forked from libxmljs/libxmljs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
66 lines (56 loc) · 1.6 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
environment:
npm_version: latest
github_release_token:
secure: fNm9+m4cngLwXcaUAk0vTM7Dp3pwjzU0H6tTb9YA+6Yh5Xng4fpSHIl257+H8mHB
matrix:
- nodejs_version: 4
npm_version: 4.0.3
- nodejs_version: 5
npm_version: 4.0.3
- nodejs_version: 6
- nodejs_version: 7
- nodejs_version: 8
- nodejs_version: 9
- nodejs_version: 10
platform:
- x86
- x64
image: Visual Studio 2015
artifacts:
- path: build\**\*.tar.gz
name: libxml_binary
install:
- ps: Install-Product node $env:nodejs_version $env:platform
- npm --version
- npm config set msvs_version 2015
- npm config set python C:\Python27\python.exe
- npm install -g npm@%npm_version%
- npm --version
- npm install -g [email protected] --production
# work around an issue with node-gyp v3.3.1 and node 4x
# https://github.com/nodejs/node-gyp/issues/921
- npm config set -g cafile=package.json
- npm config set -g strict-ssl=false
- npm config set registry http://registry.npmjs.org/
build_script:
- npm install --msvs_version=2015
test_script:
- node --expose-gc node_modules/nodeunit/bin/nodeunit test
after_test:
- node-pre-gyp package 2>&1
deploy:
- provider: GitHub
release: $(APPVEYOR_REPO_TAG_NAME)
artifact: libxml_binary
auth_token: $(github_release_token)
draft: false
prerelease: false
on:
appveyor_repo_tag: true
after_deploy:
- npm config delete -g cafile
- npm config delete -g strict-ssl
- npm config delete registry
- node-pre-gyp clean
- npm install --fallback-to-build=false
- node --expose-gc node_modules/nodeunit/bin/nodeunit test