forked from OpenHantek/openhantek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
84 lines (67 loc) · 2.15 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
# branches to build
branches:
# whitelist
only:
- master
# blacklist
except:
- gh-pages
# Do not build on tags (GitHub and BitBucket)
skip_tags: true
platform:
- x64
- x86
configuration:
- Release
- Debug
matrix:
fast_finish: false
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=x64
- 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=x86
- if [%PLATFORM%] == [Win32] set "CMAKE_GENERATOR_NAME=Visual Studio 14 2015"
- if [%PLATFORM%] == [x86] set QT5=C:\Qt\5.8\msvc2015
- if [%PLATFORM%] == [x86] set VSARCH=x86
- if [%PLATFORM%] == [x86] 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 %configuration% --target package
artifacts:
- path: build\openhantek\$(configuration)
name: OpenHantek_jt-$(platform)-$(configuration)-b$(APPVEYOR_BUILD_NUMBER)
type: zip
- path: build\packages\*.exe
name: installer
# User "ci-openhantek". Uses a appveyor encrypted github access token for that user.
deploy:
- provider: GitHub
artifact: OpenHantek_jt-$(platform)-$(configuration)-b$(APPVEYOR_BUILD_NUMBER)
release: OpenHantek_jt-b$(APPVEYOR_BUILD_NUMBER)
description: 'OpenHantek Windows Build (ZIP)'
draft: false
prerelease: false
force_update: true
auth_token:
secure: p5VWPfJhLhTNBBjEGnJaSbbhtFSjlWRZRABrrXbuPeo62x8iN1YpU8jah4hnSYlg
on:
branch: master # release from master branch only
# appveyor_repo_tag: true # deploy on tag push only
#notifications:
# - provider: Email
# to:
# - user1@email.com
# on_build_status_changed: true