-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
appveyor.yml
131 lines (98 loc) · 3.3 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# ---------------------------------------------------------------------------------
#
# ---------------------------------------------------------------------------------
init:
- git config --global core.autocrlf input
environment:
node_pre_gyp_accessKeyId:
secure: 6NwB/CPB/FsDOcPZUoJIQQc751Vkj3LYc2oPxGXo/Uw=
node_pre_gyp_secretAccessKey:
secure: FcV0jIJp3lNZR/6fGNf8xNjZ13s2pkubaYlmtFkplZYfGQgSPguUMS/CqjjRWteD
NODE_PRE_GYP_GITHUB_TOKEN:
secure: qa898q4P1jnKsCJ507wNDTaQV52i/qDV0mp9DxsC321ZujDEZDvHKR+pOqRT6GJY
# these variables are common to all jobs
# -------------- 14 Visual Studio 2015
# msvs_toolset: 14
# -------------- 12 VisualStudio 2013
msvs_toolset: 12
VisualStudioVersion: "12"
matrix:
- electron_version: "7.3.2"
nodejs_version: 12
platform: x64
# - electron_version: "8.5.0" // not working yet =< GetBackingStore missing
# nodejs_version: 12
# platform: x64
# - electron_version: "9.2.0"
# nodejs_version: 12
# platform: x64
- nodejs_version: 8
platform: x64
- nodejs_version: 10
platform: x64
- nodejs_version: 12
platform: x64
- nodejs_version: 14
platform: x64
# - electron_version: "1.4.14"
# nodejs_version: 6
# platform: x86
# - electron_version: "1.4.14"
# nodejs_version: 6
# platform: x64
# - electron_version: "1.6.10"
# nodejs_version: 6
# platform: x86
# - electron_version: "1.6.10"
# nodejs_version: 6
# platform: x64
# clone directory
clone_folder: c:\projects\node-occ
clone_depth: 5
matrix:
fast_finish: false
allow_failures:
- nodejs_version: 7
install:
#- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform;
- ps: Install-Product node $env:nodejs_version $env:platform;
- ps: $env:Path += ";$(pwd)\node_modules\.bin";
# Check if we're building the latest tag, if so
# then we publish the binaries if tests pass.
- ps: >
if ($env:appveyor_repo_tag -match "true" -and ("$(git describe --tags --always HEAD)" -eq $env:appveyor_repo_tag_name)) {
$env:publish_binary = 1;
} else {
$env:publish_binary = 0;
}
true;
- ps: >
if ($env:publish_binary -eq 1) {
"We're publishing a binary!" | Write-Host
} else {
"We're not publishing a binary" | Write-Host
}
true;
- cmd: npm install mocha@7 https://github.com/OpenWebCAD/node-pre-gyp-github.git -g
- cmd: setenv.bat 64
- cmd: build.bat %PLATFORM%
build_script:
- cmd: node --version
# - npm install --build-from-source --target_arch=%npm_config_arch%
cache:
# - c:\projects\node-occ\occt-7.1.0
configuration:
- Release
test_script:
- IF DEFINED electron_version (electron test_electron)
- IF NOT DEFINED electron_version (npm test)
after_test:
- IF %PUBLISH_BINARY% == 1 (node-pre-gyp package 2>&1)
- # IF %PUBLISH_BINARY% == 1 (node-pre-gyp publish 2>&1)
- # IF %PUBLISH_BINARY% == 1 (node-pre-gyp-github publish --release 2>&1)
- IF %PUBLISH_BINARY% == 1 (node-pre-gyp-github publish)
- # IF %PUBLISH_BINARY% == 1 (node-pre-gyp-github publish 2>&1)
- IF %PUBLISH_BINARY% == 1 (node-pre-gyp clean)
- IF %PUBLISH_BINARY% == 1 (npm install --fallback-to-build=false)
deploy: off
build: off