-
Notifications
You must be signed in to change notification settings - Fork 93
/
.appveyor.yml
252 lines (199 loc) · 7.53 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# ***** BEGIN LICENSE BLOCK *****
# This file is part of openfx-misc <https://github.com/devernay/openfx-misc>,
# Copyright (C) 2013-2018 INRIA
#
# openfx-misc is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# openfx-misc is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with openfx-misc. If not, see <http://www.gnu.org/licenses/gpl-2.0.html>
# ***** END LICENSE BLOCK *****
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}-{branch}
# branches to build
branches:
# whitelist
# only:
# - master
# blacklist
except:
- gh-pages
# Do not build on tags (GitHub only)
skip_tags: true
skip_commits:
files:
- docs/*
- LICENSE
- README.md
pull_requests:
do_not_increment_build_number: true
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
# Example of a multi-platform appveyor.yml can be found at https://github.com/cdcseacave/openMVS/blob/master/.appveyor.yml
image:
- Visual Studio 2019
- Ubuntu
- macOS
# scripts that are called at very beginning, before repo cloning
init:
- cmd: git config --global core.autocrlf input
- set arch=
- if "%PLATFORM%" == "x64" (set arch= Win64)
- if "%PLATFORM%" == "x86" (set arch=)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2019" (set GENERATOR="Visual Studio 16 2019")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" (set GENERATOR="Visual Studio 15 2017%arch%")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" (set GENERATOR="Visual Studio 14 2015%arch%")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2013" (set GENERATOR="Visual Studio 12 2013%arch%")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Ubuntu" (set GENERATOR="Unix Makefiles")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "macOS" (set GENERATOR="Unix Makefiles")
- cmd: ver
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Ubuntu" (lsb_release -a)
- cmake --version
- cmd: msbuild /version
- sh: gcc -v
# clone directory
clone_folder: c:\dev\openfx-misc
# environment variables
#environment:
# build cache to preserve files/folders between builds
#cache:
# scripts that run after cloning repository
install:
# Dump appveyor build vars for diagnostics
- cmd: "ECHO APPVEYOR_FORCED_BUILD: %APPVEYOR_FORCED_BUILD%"
- cmd: "ECHO APPVEYOR_RE_BUILD: %APPVEYOR_RE_BUILD%"
# Verify that patch command is available
- cmd: "where patch"
# a3b57fe7f0cfbf84635e3070fc3c896b25ff6c5f is CImg 2.7.2
# 3efdd8fb35e76873edcb01f9c30af762aeccb97a is CImg 2.7.4
# 530715cfe254d325cf8cec345210d9935fe4cf50 is CImg 2.8.1
# 12f1fac5dc1221eca3c0ecdca7bd77da7392ddbb is CImg 2.8.3
# 9e01d8868613bf31e305044d8e2e9d9f0217f030 is CImg 2.8.4
# 89b9d062ec472df3d33989e6d5d2a8b50ba0775c is CImg 2.9.0
# c0becdf881b0f3e2445975cac01c2422170d1fd9 is CImg 2.9.7
# b33dcc8f9f1acf1f276ded92c04f8231f6c23fcd is CImg 2.9.9
- git submodule -q update --init --recursive
- curl -L -s -S -o CImg/CImg.h https://raw.githubusercontent.com/dtschump/CImg/b33dcc8f9f1acf1f276ded92c04f8231f6c23fcd/CImg.h
- curl -L -s -S -o CImg/Inpaint/inpaint.h https://raw.githubusercontent.com/dtschump/CImg/b33dcc8f9f1acf1f276ded92c04f8231f6c23fcd/plugins/inpaint.h
- patch -p0 -dCImg < CImg/Inpaint/inpaint.h.patch
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform:
- x64
# build Configuration, i.e. Debug, Release, etc.
configuration:
- RelWithDebInfo
# scripts to run before build
# In the Visual Studio build, we set _WIN32_WINNT and WINVER to 0x0600
# to get interruptible CImg plugins (see CImgFilte.h), but they require at least Windows Vista to run.
before_build:
- mkdir build
- cd build
- cmd: cmake .. -G %GENERATOR% -DCMAKE_INSTALL_PREFIX="c:/dev/openfx-misc/install"
- sh: cmake .. -DCMAKE_INSTALL_PREFIX="c:/dev/openfx-misc/install" -DCMAKE_BUILD_TYPE=%configuration%
# scripts to run after build
#after_build:
build:
project: c:\dev\openfx-misc\build\INSTALL.vcxproj
verbosity: minimal
parallel: true
# to run your custom scripts instead of automatic MSBuild
# We also compile the tests here instead of later on.
#build_script:
# to disable automatic builds
#build: off
#---------------------------------#
# tests configuration #
#---------------------------------#
# scripts to run before tests
#before_test:
# scripts to run after tests
#after_test:
# to run your custom scripts instead of automatic tests
#test_script:
# to disable automatic tests
test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
# pushing a single file
#- path: test.zip
# pushing a single file with environment variable in path and "Deployment name" specified
#- path: MyProject\bin\$(configuration)
# name: myapp
# pushing entire folder as a zip archive
#- path: logs
# pushing all *.nupkg files in directory
#- path: out\*.nupkg
- path: install
#---------------------------------#
# deployment configuration #
#---------------------------------#
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
# provider names are case-sensitive!
deploy:
- provider: Environment
name: openfx-misc
release: openfx-misc-$(appveyor_repo_branch)-v$(appveyor_build_version)
artifact: openfx-misc-$(appveyor_repo_branch).zip
draft: false
prerelease: true
on:
branch: master # release from master branch only
configuration: release # deploy release builds only
appveyor_repo_tag: true # deploy on tag push only
is_not_pr: true # don't deploy pull requests
# scripts to run before deployment
#before_deploy:
# scripts to run after deployment
#after_deploy:
# to run your custom scripts instead of provider deployments
#deploy_script:
# to disable deployment
# deploy: off
#---------------------------------#
# global handlers #
#---------------------------------#
# on successful build
on_success:
# on build failure
on_failure:
# after build failure or success
on_finish:
#---------------------------------#
# notifications #
#---------------------------------#
# notifications:
# # Email
# - provider: Email
# to:
# subject: 'Build {{status}}' # optional
# message: "{{message}}, {{commitId}}, ..." # optional
# on_build_status_changed: true
# # Webhook
# - provider: Webhook
# url: http://www.myhook2.com
# headers:
# User-Agent: myapp 1.0
# Authorization:
# secure: GhD+5xhLz/tkYY6AO3fcfQ==
# on_build_success: false
# on_build_failure: true
# on_build_status_changed: true