forked from balena-io-modules/node-ext2fs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
43 lines (35 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
# appveyor file
# http://www.appveyor.com/docs/appveyor-yml
image:
- Visual Studio 2017
init:
- git config --global core.autocrlf input
cache:
- C:\Users\appveyor\.node-gyp
- '%AppData%\npm-cache'
environment:
matrix:
- nodejs_version: 12
- nodejs_version: 10
- nodejs_version: 8
- nodejs_version: 6
platform:
- x64
install:
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:PLATFORM
- choco install mingw
- npm install -g --production windows-build-tools@^3.1.0
# Unlike travis, appveyor doesn't clone --recursive, so we have to:
- git submodule update --init --recursive
build_script:
- refreshenv
# Installs dependencies, and runs node-gyp rebuild
- npm install --msvs_version=2015 --build-from-source
test_script:
- node --version
- npm --version
- cmd: npm test
deploy_script:
- IF "%APPVEYOR_REPO_TAG%" == "true" (npm run upload-win)
- IF "%APPVEYOR_REPO_TAG%" == "true" (IF "%nodejs_version%" == "8" (npm run upload-electron-win --build_v8_with_gn=false))
- IF NOT "%APPVEYOR_REPO_TAG%" == "true" (echo 'Not tagged, skipping deploy')