forked from BambooTracker/BambooTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.appveyor.yml
More file actions
91 lines (76 loc) · 2.44 KB
/
Copy path.appveyor.yml
File metadata and controls
91 lines (76 loc) · 2.44 KB
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
85
86
87
88
89
90
91
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 0.3.0.{build}
# branches to build
branches:
# whitelist
only:
- master
# Do not build on tags
skip_tags: true
# Skipping commits with particular message or from specific user
skip_commits:
message: /Created.*\.(png|jpg|jpeg|bmp|gif|md)/ # Regex for matching commit message
files:
- '*.md'
- '*.txt'
- 'LICENSE'
- '.gitignore'
#---------------------------------#
# environment configuration #
#---------------------------------#
# set clone depth
clone_depth: 3 # clone entire repository history if not defined
environment:
matrix:
# Windows 7 or later
- APPVEYOR_JOB_NAME: for Windows 7 or later
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
COMPILER: C:\Qt\Tools\mingw530_32\bin
QT: C:\Qt\5.10.1\mingw53_32\bin
DEST: BambooTracker-v%APPVEYOR_BUILD_VERSION%-dev.zip
# Windows XP
- APPVEYOR_JOB_NAME: for Windows XP
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
COMPILER: C:\Qt\Tools\mingw492_32\bin
QT: C:\Qt\5.5\mingw492_32\bin
DEST: BambooTracker-v%APPVEYOR_BUILD_VERSION%-dev-winXP.zip
# scripts that run after cloning repository
install:
- git submodule init
- git submodule update
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: x86
# scripts to run before build
before_build:
- set PATH=%QT%;%COMPILER%;%PATH%
- cd BambooTracker
# to run your custom scripts instead of automatic MSBuild
build_script:
- qmake BambooTracker.pro CONFIG+=release CONFIG-=debug
- mingw32-make
- md bin
- copy release\BambooTracker.exe bin
- cd bin
- windeployqt BambooTracker.exe
- ren translations lang
- cd ..
- copy .qm\*.qm bin\lang
# scripts to run after build (working directory and environment changes are persisted from the previous steps)
after_build:
- cd %APPVEYOR_BUILD_FOLDER%
- set DEPLOY_FILES=%APPVEYOR_BUILD_FOLDER%\BambooTracker\bin\*
- set DEPLOY_FILES=%DEPLOY_FILES% licenses img demos specs
- set DEPLOY_FILES=%DEPLOY_FILES% *.md LICENSE
- 7z a -tzip %DEST% %DEPLOY_FILES%
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
# pushing a single file
- path: $(DEST)