forked from OpenHantek/openhantek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
53 lines (42 loc) · 1.39 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
platform:
- x64
configuration:
- Release
matrix:
fast_finish: true
clone_folder: C:\projects\openhantek
install:
# - cinst cmake
image:
- Visual Studio 2015
shallow_clone: true
before_build:
- if [%PLATFORM%] == [x64] set QT5=C:\Qt\5.8\msvc2015_64
- if [%PLATFORM%] == [x64] set VSARCH=x86
- if [%PLATFORM%] == [x64] set "CMAKE_GENERATOR_NAME=Visual Studio 14 2015 Win64"
- if [%PLATFORM%] == [Win32] set QT5=C:\Qt\5.8\msvc2015
- if [%PLATFORM%] == [Win32] set VSARCH=x64
- if [%PLATFORM%] == [Win32] set "CMAKE_GENERATOR_NAME=Visual Studio 14 2015"
- set Path=%QT5%\bin;%Path%
- md build
- cd build
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %VSARCH%
- cmake.exe -G "%CMAKE_GENERATOR_NAME%" "-DCMAKE_PREFIX_PATH=%QT5%" -DCMAKE_BUILD_TYPE=%configuration% ..
build:
build_script:
- cmake --build . --config Release --target package
# User "ci-openhantek". Uses a appveyor encrypted github access token for that user.
deploy:
- provider: GitHub
artifact: /packages\\*\.exe/
draft: false
prerelease: false
force_update: true
auth_token:
secure: KD4fRkMn+nap8Uw/8SDyAgqYREMPYkF+AOdl6e130Ha95lEAyCyLsKuIfFWsLy4c
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only
notifications:
- provider: Email
on_build_status_changed: true