This repository was archived by the owner on Jun 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathappveyor.yml
64 lines (53 loc) · 1.41 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
skip_branch_with_pr: true
clone_depth: 10
os: Visual Studio 2017
environment:
PREBUILD_TOKEN:
secure: 7t92yForo995jn/5Afeo6A3wcmEyus0nlybU4a9MYQ1FSoMvkjLeihbEQYr99F9S
matrix:
- nodejs_version: "13"
- nodejs_version: "12"
- nodejs_version: "10"
- nodejs_version: "8"
platform:
- x86
- x64
matrix:
fast_finish: true
artifacts:
- path: 'prebuilds\*.tar.gz'
install:
- cmd: git submodule update --init --recursive
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
- node --version
- npm --version
- ps: >
$env:JOBS = "max";
$env:PUBLISH = "false";
$env:GIT_TAG = "$(git describe --tags --always HEAD)";
if ($env:APPVEYOR_REPO_BRANCH -match $env:GIT_TAG) {
$env:PUBLISH = "true";
}
if ($env:APPVEYOR_REPO_TAG -match "true") {
$env:PUBLISH = "true";
}
true;
- ps: >
@{
"APPVEYOR_REPO_BRANCH" = $env:APPVEYOR_REPO_BRANCH
"APPVEYOR_REPO_TAG" = $env:APPVEYOR_REPO_TAG
"APPVEYOR_REPO_COMMIT_MESSAGE" = $env:APPVEYOR_REPO_COMMIT_MESSAGE
"LATEST TAG" = $env:GIT_TAG
"PUBLISHING" = $env:PUBLISH
} | Out-String | Write-Host;
build_script:
- npm install --build-from-source
test_script:
- npm test
- npm run prebuild-ci
- ps: >
if ($env:PUBLISH -eq "true") {
npm run prebuild-upload | Write-Host;
}
true;
deploy: OFF