forked from apitrace/apitrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
50 lines (38 loc) · 1.23 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/windows-images-software/
image: Visual Studio 2017
environment:
MSBUILD_FLAGS: /verbosity:minimal /maxcpucount
matrix:
- CMAKE_GENERATOR: "Visual Studio 15 2017"
QT5: C:\Qt\5.12\msvc2017
- CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
QT5: C:\Qt\5.12\msvc2017_64
matrix:
fast_finish: true
before_build:
- set Path=C:\Python36;%Path%
- set Path=%QT5%\bin;%Path%
- cmake -H. -Bbuild -G "%CMAKE_GENERATOR%" "-DCMAKE_PREFIX_PATH=%QT5%" -DENABLE_GUI=ON
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: gjIEc0c2BefRL7rHhypJA57Swohq5bTnyJoqT6U7jSzPiYc5GS5pt8jfKoChIzuE
artifact: /.*\.7z/
on:
appveyor_repo_tag: true