-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
152 lines (114 loc) · 4.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# ---------------------------------------------------------------------------------
#
# ---------------------------------------------------------------------------------
init:
- git config --global core.autocrlf input
environment:
api-key:
secure: cpvFwWkIEifS+fdhr2elA4trhGD460CNWcD72arIiSu+3CUr4v5s3yopJgKkL1em
node_pre_gyp_accessKeyId:
secure: 6NwB/CPB/FsDOcPZUoJIQQc751Vkj3LYc2oPxGXo/Uw=
node_pre_gyp_secretAccessKey:
secure: FcV0jIJp3lNZR/6fGNf8xNjZ13s2pkubaYlmtFkplZYfGQgSPguUMS/CqjjRWteD
NODE_PRE_GYP_GITHUB_TOKEN:
secure: QLn52YaMzobrIzERHGZ3AL32uLr6RN9FfkMwenFOA8SXjGecZ8WXBZq+xg3QLwW/rRb4FWO2Dd83Djrbj5X+NfW82H6YXoLRWKmTxRfqeIJ47BdXi8DYXLrEAOZs6LcIcJ/A2oM64UIJtb4gKnKze3dfxGAIciBQA+tjNqfc6kvtzUGnXDJ/9HSOG6YbqZiZtUtPTK1f5OElhPFeQL1OkqMLQp5E0lqzQG/+b0Rkx6AX+kDSga7vSmG7CWjXanHjaeCvy6lIAAzLpRWuE43oN0USWMAynAlZ9bWt2Fj7KNv63wUmIgK2ykOFCGZK15HEJjoT4TVmEa6FH6A76KLUFm/sSEgLpGe8C3mWpIjQdoLQbw5xEl1bFWfM/3Yyg7Qx/b6bAnuhnocqsEd+eoYE80KdxC2CUziRSq0dwzhvWT92SJKyuOVHPMnij/vGKeRup4jcuzdRwwyibD0osQG3JiPkSwVeQQ4gtPHvRdfo8I/8KV55UX0wdhq29HMkh7o4bBMd/ywiw5LZb5yXPhIXGfUn2hh1ODo+N7zb3NZt03TTE/igFL1exZIn6eiSrTzcUtkEiQKrSnVTq1Afom2slOoTpE+LtrWPKIlXde6fF50wKvu6x8KpwmikZUMsCNdTDGI9Xfh3Zx0O+PsEn7/HkRv8Wy5E3hGTn1piksypqXU=
# these variables are common to all jobs
# -------------- 14 Visual Studio 2015
# msvs_toolset: 14
# -------------- 12 VisualStudio 2013
msvs_toolset: 12
VisualStudioVersion: "12"
matrix:
# - nodejs_version: 6
# platform: x86
# - nodejs_version: 6
# platform: x64
# - nodejs_version: 7
# platform: x86
# - nodejs_version: 7
# platform: x64
# - nodejs_version: 8
# platform: x64
# - nodejs_version: 9
# platform: x64
# - nodejs_version: 10
# platform: x64
# - nodejs_version: 12
# 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
# - electron_version: "2.0.16"
# nodejs_version: 8
# platform: x64
# - electron_version: "4.0.3"
# nodejs_version: 10
# platform: x64
# - electron_version: "4.2.2"
# nodejs_version: 10
# platform: x64
# - electron_version: "7.1.2"
# nodejs_version: 12
# platform: x64
- electron_version: "8.1.1"
nodejs_version: 12
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 i -g mocha@7 https://github.com/OpenWebCAD/node-pre-gyp-github.git
- 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.4.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