forked from mapeditor/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
59 lines (51 loc) · 1.93 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
os: MinGW
clone_depth: 200
environment:
QTDIR: C:\Qt\5.4\mingw491_32
NSIS_ROOT: C:\nsis
MINGW: C:\Qt\Tools\mingw491_32
configuration: Release
install:
- appveyor DownloadFile "http://sunet.dl.sourceforge.net/project/nsis/NSIS 2/2.46/nsis-2.46-setup.exe" -FileName nsissetup.exe
- nsissetup /S /D=%NSIS_ROOT%
- 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
- if defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_TAG_NAME:~1%
- if defined APPVEYOR_REPO_TAG_NAME set BUILD_INFO_VERSION=%VERSION%
- if defined APPVEYOR_REPO_TAG_NAME echo Building Tiled %VERSION%... (from %COMMITNOW%)
- if not defined APPVEYOR_REPO_TAG_NAME set VERSION=%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%
- if not defined APPVEYOR_REPO_TAG_NAME set BUILD_INFO_VERSION=%COMMITNOW%
- if not defined APPVEYOR_REPO_TAG_NAME echo Building Tiled daily %VERSION%... (from %COMMITNOW%)
- qbs setup-toolchains --type mingw %MINGW%\bin\g++.exe mingw
- qbs setup-qt %QTDIR%\bin\qmake.exe qt
- qbs config defaultProfile qt
- qbs install --install-root install-root release
after_build:
- pushd %APPVEYOR_BUILD_FOLDER%\dist\win
- set TILED_BUILD_DIR=%APPVEYOR_BUILD_FOLDER%\install-root
- set ARCH=32
- '%NSIS_ROOT%\makensis tiled.nsi'
- move tiled-*-setup.exe %APPVEYOR_BUILD_FOLDER%
artifacts:
- name: Installer
path: 'tiled-*-setup.exe'
deploy:
- provider: GitHub
release: Tiled $(VERSION)
auth_token:
secure: 57ahePdHlJPeOX8/MqsIg5ho4x512wvAbwRA7TkXAOav/JTHvkTG5gf8k37/883r
artifact: /.*\.exe/
draft: true
on:
appveyor_repo_tag: true
- provider: FTP
protocol: sftp
host: files.mapeditor.org
username: bjorn
password:
secure: t5CS+3ObwLWvrtHC9FLUbFNrn08TRS4y/2abIFJfpe4=
folder: public_html/files.mapeditor.org/public/daily
on:
branch: master
appveyor_repo_tag: false