forked from mapeditor/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
84 lines (74 loc) · 2.69 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
clone_depth: 200
version: '0.16.{build}'
environment:
global:
MINGW: C:\Qt\Tools\mingw492_32
matrix:
- QTDIR: C:\Qt\5.5\mingw492_32
- QTDIR: C:\Qt\5.5\msvc2013_64
configuration: Release
install:
- set PATH=%PATH%;%QTDIR%\bin;%MINGW%\bin;C:\Qt\Tools\QtCreator\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%
- if defined APPVEYOR_REPO_TAG_NAME set TILED_VERSION=%APPVEYOR_REPO_TAG_NAME:~1%
- if defined APPVEYOR_REPO_TAG_NAME echo Building Tiled %TILED_VERSION%... (from %COMMITNOW%)
- if defined APPVEYOR_REPO_TAG_NAME set TILED_RELEASE=true
- if not defined APPVEYOR_REPO_TAG_NAME set TILED_VERSION=%APPVEYOR_BUILD_VERSION%
- if not defined APPVEYOR_REPO_TAG_NAME set TILED_SNAPSHOT=true
- if not defined APPVEYOR_REPO_TAG_NAME set TILED_SPARKLE=true
- if not defined APPVEYOR_REPO_TAG_NAME echo Building Tiled daily %TILED_VERSION%... (from %COMMITNOW%)
- cp dist/win/WiXModule.qbs C:\Qt\Tools\QtCreator\share\qtcreator\qbs\share\qbs\modules\wix\WiXModule.qbs
- qbs setup-toolchains --detect
- qbs config profiles.i686-w64-mingw32.cpp.archiverPath ar.exe
- qbs config profiles.i686-w64-mingw32.cpp.nmPath nm.exe
- qbs config profiles.i686-w64-mingw32.cpp.objcopyPath objcopy.exe
- qbs config profiles.i686-w64-mingw32.cpp.stripPath strip.exe
- qbs setup-qt %QTDIR%\bin\qmake.exe qt
- qbs config defaultProfile qt
- qbs install --all-products --install-root install-root release
after_build:
- cd qt-release
- cd dist*
- move tiled-*.msi %APPVEYOR_BUILD_FOLDER%
- if defined TILED_SNAPSHOT move appcast-win*-snapshots.xml %APPVEYOR_BUILD_FOLDER%
artifacts:
- name: Installer
path: 'tiled-*.msi'
- name: AppCast
path: 'appcast-win*-snapshots.xml'
deploy:
- provider: GitHub
release: Tiled $(TILED_VERSION)
auth_token:
secure: 57ahePdHlJPeOX8/MqsIg5ho4x512wvAbwRA7TkXAOav/JTHvkTG5gf8k37/883r
artifact: /.*\.msi/
draft: true
on:
appveyor_repo_tag: true
- provider: FTP
protocol: sftp
host: files.mapeditor.org
username: bjorn
password:
secure: Hx5YfCOtpeBbftD4qnVCRLUGmMU9nogJTlSxq0xNbJQ=
folder: public_html/files.mapeditor.org/public/daily
artifact: /.*\.msi/
on:
branch: snapshot
appveyor_repo_tag: false
- 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
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/6e48d432e0e0dd1b2d22