forked from mapeditor/tiled
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
115 lines (104 loc) · 3.53 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
clone_depth: 200
version: '1.1.{build}'
environment:
my_secret:
secure: +3IhWT10lCSC4GE4gGfWt8WiZdIXuMUfaImgvQUullg=
matrix:
- QTDIR: C:\Qt\5.10.1\msvc2013_64
PYTHONHOME: C:\Python36-x64
PUSH_RELEASE: true
TILED_ITCH_CHANNEL: windows-64bit
- QTDIR: C:\Qt\5.10.1\mingw53_32
PYTHONHOME: C:\Python36
MINGW: C:\Qt\Tools\mingw530_32
PUSH_RELEASE: true
TILED_ITCH_CHANNEL: windows-32bit
- QTDIR: C:\Qt\5.6\mingw49_32
PYTHONHOME: C:\Python36
MINGW: C:\Qt\Tools\mingw492_32
PUSH_RELEASE: false
TILED_ITCH_CHANNEL: winxp-32bit
configuration: Release
install:
- choco install -y qbs --version 1.11.1
- nuget install secure-file -ExcludeVersion
- set PATH=%PATH%;%QTDIR%\bin;%MINGW%\bin
build_script:
- FOR /F "tokens=*" %%i in ('git describe') do SET COMMITNOW=%%i
- set VERSION_DATE=%DATE:~10,4%.%DATE:~4,2%.%DATE:~7,2%
- set TILED_SPARKLE=true
- if defined APPVEYOR_REPO_TAG_NAME (set TILED_RELEASE=true) else (set TILED_SNAPSHOT=true)
- if defined TILED_RELEASE set TILED_VERSION=%APPVEYOR_REPO_TAG_NAME:~1%
- if defined TILED_RELEASE echo Building Tiled %TILED_VERSION%... (from %COMMITNOW%)
- if defined TILED_SNAPSHOT set TILED_VERSION=%APPVEYOR_BUILD_VERSION%
- if defined TILED_SNAPSHOT echo Building Tiled snapshot %TILED_VERSION%... (from %COMMITNOW%)
- qbs --version
- qbs setup-toolchains --detect
- qbs setup-qt %QTDIR%\bin\qmake.exe qt
- qbs config defaultProfile qt
- if defined TILED_RELEASE (set TILED_ITCH_VERSION=%TILED_VERSION%) else (set TILED_ITCH_VERSION=%VERSION_DATE%)
- if defined TILED_SNAPSHOT (set TILED_ITCH_CHANNEL=%TILED_ITCH_CHANNEL%-snapshot)
- if not defined APPVEYOR_PULL_REQUEST_NUMBER if [%APPVEYOR_REPO_BRANCH%]==[snapshot] set PUSH_TO_ITCH=true
- qbs build --all-products config:release projects.Tiled.windowsInstaller:true
- qbs build --all-products config:itch qbs.buildVariant:release projects.Tiled.sparkleEnabled:false projects.Tiled.version:%TILED_ITCH_VERSION%
- cd util\java
- mvn --version
- mvn clean install
- cd ..\..
after_build:
- cd release
- cd installer*
- move tiled-*.msi %APPVEYOR_BUILD_FOLDER%
- if defined TILED_SNAPSHOT move appcast-win*-snapshots.xml %APPVEYOR_BUILD_FOLDER%
- cd ..\..
- cd itch
- cd archive*
- move tiled-*.7z %APPVEYOR_BUILD_FOLDER%
- cd ..\..
- if defined PUSH_TO_ITCH dist\win\push-to-itch.bat
artifacts:
- name: Installer
path: 'tiled-*.msi'
- name: Archive
path: 'tiled-*.7z'
- name: AppCast
path: 'appcast-win*-snapshots.xml'
cache:
- C:\Users\appveyor\.m2
deploy:
- provider: GitHub
release: Tiled $(TILED_VERSION)
auth_token:
secure: 57ahePdHlJPeOX8/MqsIg5ho4x512wvAbwRA7TkXAOav/JTHvkTG5gf8k37/883r
artifact: /.*\.msi/
draft: true
on:
appveyor_repo_tag: true
push_release: true
- provider: FTP
protocol: sftp
host: update.mapeditor.org
username: bjorn
password:
secure: Hx5YfCOtpeBbftD4qnVCRLUGmMU9nogJTlSxq0xNbJQ=
folder: sparkle/snapshots-win
artifact: /.*\.(msi|7z)/
on:
branch: snapshot
appveyor_repo_tag: false
push_release: true
- provider: FTP
protocol: sftp
host: update.mapeditor.org
username: bjorn
password:
secure: Hx5YfCOtpeBbftD4qnVCRLUGmMU9nogJTlSxq0xNbJQ=
folder: sparkle
artifact: /appcast-win.*-snapshots\.xml/
on:
branch: snapshot
appveyor_repo_tag: false
push_release: true
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/6e48d432e0e0dd1b2d22