-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
64 lines (52 loc) · 1.84 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
# Start builds on tags only (GitHub and BitBucket)
skip_non_tags: true
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
# Build worker image (VM template)
image: Visual Studio 2017
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
matrix:
fast_finish: true # set this flag to immediately finish build once one of the jobs fails.
allow_failures:
- platform: x64
configuration: Release
# exclude configuration from the matrix. Works similarly to 'allow_failures' but build not even being started for excluded combination.
exclude:
- platform: x86
configuration: Debug
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: x64
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
install:
- set QTDIR=C:\Qt\5.12.2\msvc2017_64
- choco install -y InnoSetup
- set PATH=%QTDIR%\bin;C:\Qt\Tools\QTCreator\bin;%PATH%;"C:\Program Files (x86)\Inno Setup 5"
build_script:
- qmake SmartHHC.pro -spec win32-msvc CONFIG+=release
- jom.exe
after_build:
- cmd: mkdir Deployment
- cmd: cp LICENSE Deployment\LICENSE.txt
- cmd: cp release\smarthhc.exe Deployment\
- windeployqt Deployment/smarthhc.exe --release
- iscc innosetup.iss
- cmd: move Output\SmartHHC.exe SmartHHC-%APPVEYOR_REPO_TAG_NAME%-x64.exe
artifacts:
- name: Installer
path: 'SmartHHC*.exe'
deploy:
# Deploy to GitHub Releases
# See https://www.appveyor.com/docs/deployment/github/
- provider: GitHub
auth_token:
secure: F0hK0o5SHzUO/tlk1qMiVCbeZtNPUZzfhOw8YEfTs/72AIaWCUo9J4zptDYE2Z7F
artifact: Installer
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true