forked from libxmljs/libxmljs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
53 lines (44 loc) · 1.11 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
environment:
npm_version: latest
github_release_token:
secure: hxsvJ4kPWab0alyx7GyJLh7aWeqlXhON9GmvZFh5ywyGS1WO8lFqNn8bx8HmlG3H
matrix:
- nodejs_version: "13"
- nodejs_version: "12"
- nodejs_version: "10"
- nodejs_version: "8"
platform:
- x86
- x64
os: Visual Studio 2015
artifacts:
- path: build\**\*.tar.gz
name: libxml_binary
install:
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:PLATFORM
- npm --version
- npm config set msvs_version 2015
- npm config set python C:\Python27\python.exe
- yarn global add node-pre-gyp
build_script:
- set npm_config_msvs_version=2015
- set npm_config_build_from_source=true
- yarn --frozen-lockfile
test_script:
- yarn 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:
- node-pre-gyp clean
- set npm_config_fallback_to_build=false
- yarn --frozen-lockfile
- yarn test