forked from apitrace/apitrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
50 lines (38 loc) · 1.33 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
# See http://www.appveyor.com/docs/appveyor-yml
version: '{build}'
branches:
except:
- /^travis.*$/
init:
- git config --global core.autocrlf input
shallow_clone: true
# https://www.appveyor.com/docs/build-environment/#build-worker-images
image: Visual Studio 2017
environment:
MSBUILD_FLAGS: /verbosity:minimal /maxcpucount
matrix:
- CMAKE_GENERATOR: "Visual Studio 15 2017"
QT5: C:\Qt\5.9.1\msvc2015
- CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
QT5: C:\Qt\5.9.1\msvc2017_64
matrix:
fast_finish: true
before_build:
- if exist "%QT5%" set Path=%QT5%\bin;%Path%
- if exist "%QT5%" cmake -H. -Bbuild -G "%CMAKE_GENERATOR%" "-DCMAKE_PREFIX_PATH=%QT5%" -DENABLE_GUI=ON
- if not exist "%QT5%" cmake -H. -Bbuild -G "%CMAKE_GENERATOR%" -DENABLE_GUI=OFF
build_script:
- if "%APPVEYOR_REPO_TAG%"=="true" (set CONFIGURATION=RelWithDebInfo) else (set CONFIGURATION=Debug)
- cmake --build build --config "%CONFIGURATION%" -- %MSBUILD_FLAGS%
after_build:
- cmake --build build --config "%CONFIGURATION%" --target check -- %MSBUILD_FLAGS%
- cmake --build build --config "%CONFIGURATION%" --target package -- %MSBUILD_FLAGS%
artifacts:
- path: build/apitrace-*.7z
deploy:
provider: GitHub
auth_token:
secure: a79IHXDoZN60ADwPX1OfJYJUjaWSeKWqFfQu+531AaSuH5a03sR8ZKeNWutklAQU
artifact: /.*\.7z/
on:
appveyor_repo_tag: true