Debian Codegraph @

.appveyor.yml

raw symbols SCIP
1 #---------------------------------#
2 # general configuration #
3 #---------------------------------#
4
5 # version format
6 version: 0.6.5.{build}
7
8 # branches to build
9 branches:
10 # whitelist
11 only:
12 - master
13 # - /v\d*\.\d*\.\d*/
14
15 # Skipping commits with particular message or from specific user
16 skip_commits:
17 message: /Created.*\.(png|jpg|jpeg|bmp|gif|md)/ # Regex for matching commit message
18 files:
19 - '*.md'
20 - '*.txt'
21 - 'LICENSE'
22 - '.gitignore'
23
24 #---------------------------------#
25 # environment configuration #
26 #---------------------------------#
27
28 # set clone depth
29 clone_depth: 3 # clone entire repository history if not defined
30
31 environment:
32 APPVEYOR_YML_DISABLE_PS_LINUX: true
33 matrix:
34 # Windows 7 or later
35 - APPVEYOR_JOB_NAME: for Windows (7 or later)
36 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
37 COMPILER: C:\Qt\Tools\mingw810_32\bin
38 QT: C:\Qt\5.15.2\mingw81_32\bin
39 PLATFORM: windows
40 DEST: BambooTracker-v%APPVEYOR_BUILD_VERSION%-dev-windows-7-32bit.zip
41 MAKE: mingw32-make
42 RELEASE_BUILD: false
43 # Windows XP (Debug)
44 # - APPVEYOR_JOB_NAME: for Windows XP
45 # APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
46 # COMPILER: C:\Qt\Tools\mingw492_32\bin
47 # QT: C:\Qt\5.5\mingw492_32\bin
48 # PLATFORM: windows-xp
49 # DEST: BambooTracker-v%APPVEYOR_BUILD_VERSION%-dev-windows-xp-32bit.zip
50 # MAKE: mingw32-make
51 # RELEASE_BUILD: false
52 # Windows XP (Release)
53 # - APPVEYOR_JOB_NAME: for Windows XP (Release)
54 # APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
55 # COMPILER: C:\Qt\Tools\mingw492_32\bin
56 # QT: C:\Qt\5.5\mingw492_32\bin
57 # PLATFORM: windows-xp
58 # DEST: BambooTracker-v%APPVEYOR_BUILD_VERSION%-windows-xp-32bit.zip
59 # MAKE: mingw32-make
60 # RELEASE_BUILD: true
61 # macOS Ventura
62 - APPVEYOR_JOB_NAME: for macOS
63 APPVEYOR_BUILD_WORKER_IMAGE: macos-ventura
64 PLATFORM: macos
65 DEST: BambooTracker-v$APPVEYOR_BUILD_VERSION-dev-macos-64bit.zip
66 MAKE: make
67 RELEASE_BUILD: false
68
69 for:
70 -
71 # Debug
72 matrix:
73 only:
74 - RELEASE_BUILD: false
75 skip_tags: true
76 # -
77 # # Release
78 # matrix:
79 # only:
80 # - RELEASE_BUILD: true
81 # skip_non_tags: true
82
83 # scripts that run after cloning repository
84 install:
85 - git submodule init
86 - git submodule update
87
88 #---------------------------------#
89 # build configuration #
90 #---------------------------------#
91
92 # build platform, i.e. x86, x64, Any CPU. This setting is optional.
93 platform: x86
94
95 # scripts to run before build
96 before_build:
97 - ps: $env:Path = "$env:QT;$env:COMPILER;$env:Path"
98 - sh: |
99 # Update outdated cacerts
100 curl --insecure --remote-name https://curl.se/ca/cacert.pem
101 sudo mv cacert.pem /etc/ssl/cert.pem
102
103 export HOMEBREW_NO_INSTALL_CLEANUP=1
104 brew update
105
106 # Download failed: Homebrew-installed `curl` is not installed
107 brew install curl
108 brew install pkg-config jack p7zip
109
110 export PATH="$HOME/Qt/6.6/macos/bin:$PATH"
111 export PKG_CONFIG_PATH="/usr/local/opt/jack/lib/pkgconfig"${PKG_CONFIG_PATH:+':'}$PKG_CONFIG_PATH
112
113 # to run your custom scripts instead of automatic MSBuild
114 build_script:
115 - ps: |
116 $QMAKE_CONFIGS = if ($env:RELEASE_BUILD -ieq "true") { "CONFIG+=release CONFIG-=debug" } else { "CONFIG-=release CONFIG+=debug CONFIG+=console CONFIG+=nostrip" }
117 echo $QMAKE_CONFIGS
118 Invoke-Expression ("qmake.exe Project.pro PREFIX=$pwd\target " + $QMAKE_CONFIGS)
119 Invoke-Expression ($env:MAKE + " qmake_all")
120 Invoke-Expression ($env:MAKE + " -j2")
121 - sh: |
122 qmake Project.pro PREFIX="$APPVEYOR_BUILD_FOLDER"/target CONFIG-=release CONFIG+=debug CONFIG+=console CONFIG+=nostrip CONFIG+=install_flat CONFIG+=use_jack CONFIG+=no_warnings_are_errors
123 $MAKE qmake_all
124 $MAKE -j2
125
126 # scripts to run after build (working directory and environment changes are persisted from the previous steps)
127 after_build:
128 - ps: Invoke-Expression ($env:MAKE + " install")
129 - sh: $MAKE install
130 - cd target
131 # Port of scripts/package_windows.sh to PowerShell
132 - ps: |
133 Copy-Item -Recurse ..\*.md .
134 $HELP_OUT = (windeployqt.exe -h)
135 $DEPLOY_OPTS = "-verbose=2"
136 $PLUGIN_OPTS = @("--no-quick-import","--no-system-d3d-compiler","--no-webkit2","--no-opengl-sw","--no-virtualkeyboard","--no-angle")
137 $PLUGIN_OPTS | ForEach{If ($HELP_OUT | Select-String $_) { $DEPLOY_OPTS = $DEPLOY_OPTS + " " + $_ }}
138 $EXLIB_OPTS = @("svg")
139 $EXLIB_OPTS | ForEach{If ($HELP_OUT | Select-String $_) { $DEPLOY_OPTS = $DEPLOY_OPTS + " --no-" + $_ }}
140 Invoke-Expression ("windeployqt.exe BambooTracker.exe " + $DEPLOY_OPTS)
141 Copy-Item -Recurse translations\*.qm lang
142 # Save qico* library for working .ico support!
143 Move-Item imageformats\*qico* .\
144 Remove-Item -Recurse -Force imageformats\*,translations
145 Move-Item *qico* imageformats\
146 - sh: bash ../scripts/package_osx.sh
147 - cd ..
148 - ps: |
149 $DEV_LAB = if ($env:RELEASE_BUILD -ieq "true") { "-" } else { "-dev-" }
150 mv target BambooTracker-v"$env:APPVEYOR_BUILD_VERSION$DEV_LAB$env:PLATFORM"
151 7z a -tzip "$env:DEST" BambooTracker-v"$env:APPVEYOR_BUILD_VERSION$DEV_LAB$env:PLATFORM"
152 - sh: |
153 mv target BambooTracker-v"$APPVEYOR_BUILD_VERSION"-dev-"$PLATFORM"
154 7z a -tzip "$DEST" BambooTracker-v"$APPVEYOR_BUILD_VERSION"-dev-"$PLATFORM"
155
156 #---------------------------------#
157 # artifacts configuration #
158 #---------------------------------#
159
160 artifacts:
161 # pushing a single file
162 - path: $(DEST)