This repository is currently being migrated. It's locked while the migration is in progress.
forked from libxmljs/libxmljs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
73 lines (63 loc) · 1.79 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
68
69
70
71
72
73
environment:
npm_version: latest
gyp_version: latest
pre_gyp_version: latest
github_release_token:
secure: en/UnoFHA3RsSAHM5c6zb3RAMa4V01lC3pYG1YrHSeOPFu78SUA/0lOjNe3pp8RG
matrix:
- nodejs_version: 0.10
npm_version: 4.0.3
gyp_version: 3.5.0
pre_gyp_version: 0.6.36
- nodejs_version: 0.12
npm_version: 4.0.3
gyp_version: 3.5.0
pre_gyp_version: 0.6.36
- nodejs_version: 4
- nodejs_version: 5
- nodejs_version: 6
- nodejs_version: 7
- nodejs_version: 8
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 node-gyp@%gyp_version%
- npm install -g node-pre-gyp@%pre_gyp_version%
# 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