forked from addaleax/lzma-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
65 lines (56 loc) · 1.57 KB
/
appveyor.yml
File metadata and controls
65 lines (56 loc) · 1.57 KB
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
environment:
matrix:
- nodejs_version: "6"
platform: x64
- nodejs_version: "6"
platform: x86
- nodejs_version: "7"
platform: x64
- nodejs_version: "7"
platform: x86
- nodejs_version: "5"
platform: x64
- nodejs_version: "5"
platform: x86
- nodejs_version: "4"
platform: x86
- nodejs_version: "4"
platform: x64
install:
# From https://github.com/nodejs/nan/blob/master/appveyor.yml
- ps: Install-Product node $env:nodejs_version
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
- node -p process.arch
- node -p process.version
# Temporary workaround for https://github.com/nodejs/node-gyp/pull/952
# and https://github.com/addaleax/lzma-native/issues/30
- npm install node-gyp@3.5.0
- IF %nodejs_version% LSS 1 npm -g install npm
- IF %nodejs_version% LSS 1 set PATH=%APPDATA%\npm;%PATH%
- npm run prepare
- npm install --build-from-source
- node_modules\.bin\node-pre-gyp package --target_arch=%PLATFORM:x86=ia32% %NPG_ARGS%
- move build\stage\lzma-native lzma-native
test_script:
- npm test
build: off
version: "{build}"
artifacts:
path: lzma-native\*.gz
name: npg-package
deploy:
provider: FTP
protocol: sftp
host: entless.org
username: node-pre-gyp
password:
secure: wvUCOyy2vjKjWyxk4lnoW7s1i2oiK1QhQFlBPKiKefl0cReZ0k/7iD7PBRjrh8OpUbZ05Jgc+pEYHC3sl87tVLB5pDS+jU++dPSXgHb1UmE=
artifact: /npg-package/
folder: uploads
# only build on tags
on:
appveyor_repo_tag: true
matrix:
fast_finish: true
cache:
- node_modules