forked from mapeditor/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
116 lines (113 loc) · 4.23 KB
/
.travis.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
116
language: cpp
sudo: required
dist: bionic
python: 3.6
env:
global:
- secure: J8Y+eQD0p5YPOlhBEPFgpZzhRFjXC4phiiFtGV3JaYX34wxCsyyNhMStMqIZTBL4D9lQojfLgXODBDaqT1iSHDe1oonosnyYnGBIJElez247pjuNiSSvcAbYa9RQnwfHe8JFphQHViURbv0OfqpHHyAlHy5b8nrPYWG2xmHA5nY=
- secure: VgouZ5cStqlgODwIuLIvIBN5gkmrP95agCS3BorLm7g/iXM4cwuaV+bov9FiSlnzcnWfpsNMsFt5xDU2Oc17N0Kyx531MIA1H5h9xdzj/IhjhLcOOqYeXt3lN2quRE2maIZDSrPVr3eY0o6xdcNkeK0jpX/mgIiSHwXOclXv+6o=
- QT_INSTALL_DIR=~/Qt
- QT_VERSION=5.15.2
- QTCREATOR_VERSION=5.0.3
cache:
directories:
- ${QT_INSTALL_DIR}
- ~/.ccache
addons:
coverity_scan:
project:
name: bjorn/tiled
description: A generic tile map editor
notification_email: [email protected]
build_command_prepend: qmake
build_command: make
branch_pattern: coverity_scan
notifications:
irc:
channels:
- chat.freenode.net#tiled
on_success: change
on_failure: always
use_notice: true
skip_join: true
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- binutils
- g++-7
- libgl1-mesa-dev
- libxkbcommon-x11-0
- zlib1g-dev
- libzstd-dev
- p7zip-full
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- QT_BIN=${QT_INSTALL_DIR}/${QT_VERSION}/gcc_64/bin
- PATH="${QT_INSTALL_DIR}/Tools/QtCreator/bin:${QT_BIN}:${PATH}"
before_install:
- eval "${MATRIX_EVAL}"
- ./dist/install-qt.sh -d ${QT_INSTALL_DIR} --version ${QT_VERSION} qtbase qtdeclarative qtsvg qtimageformats qttools icu
- ./dist/install-qt.sh -d ${QT_INSTALL_DIR} --version ${QTCREATOR_VERSION} qtcreator
script:
- qbs --version
- qbs setup-toolchains --detect
- qbs config defaultProfile x86_64-linux-gnu-gcc-7
- qbs install --install-root Tiled config:release qbs.installPrefix:/usr projects.Tiled.version:$TILED_VERSION
- cp LICENSE* COPYING *md Tiled/
after_script:
- cppcheck --enable=all -q -Isrc/libtiled `git ls-files src/\*.cpp`
after_success:
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
-O linuxdeployqt
- chmod a+x linuxdeployqt
- "./linuxdeployqt ./Tiled/usr/share/applications/org.mapeditor.Tiled.desktop
-bundle-non-qt-libs -extra-plugins=imageformats/libqsvg.so -exclude-libs=libpython3.5m.so.1
-verbose=2"
- ./linuxdeployqt --appimage-extract
- export PATH=$(readlink -f ./squashfs-root/usr/bin/):$PATH
- ./squashfs-root/usr/bin/appimagetool Tiled/
- find ./Tiled -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d
" " -f 2-3 | sort | uniq
- mv Tiled-x86_64.AppImage Tiled-$TILED_VERSION-x86_64.AppImage
- os: osx
osx_image: xcode12
addons:
homebrew:
packages:
- p7zip
- ccache
update: true
env:
- MAKEFLAGS=-j2
- QT_BIN=${QT_INSTALL_DIR}/${QT_VERSION}/clang_64/bin
- PATH="${QT_INSTALL_DIR}/Qt Creator.app/Contents/MacOS:${QT_BIN}:${PATH}"
before_install:
- ./dist/install-qt.sh -d ${QT_INSTALL_DIR} --version ${QT_VERSION} qtbase qtdeclarative qtsvg qtimageformats qttools
- ./dist/install-qt.sh -d ${QT_INSTALL_DIR} --version ${QTCREATOR_VERSION} qtcreator
- git clone --depth 1 -b master https://github.com/facebook/zstd.git
- cd zstd/lib
- make libzstd.a
- cd ../../
script:
- qbs --version
- qbs setup-toolchains --detect
- qbs config defaultProfile xcode
- ccache -zs
- qbs install --install-root install config:release qbs.installPrefix:"" projects.Tiled.version:$TILED_VERSION projects.Tiled.staticZstd:true modules.cpp.compilerWrapper:ccache
- ccache -s
- macdeployqt install/Tiled.app -verbose=2
- pushd install
- ruby ../dist/macos/fixup-install-names.rb
- ditto -c -k --sequesterRsrc --keepParent Tiled.app ../Tiled-$TILED_VERSION-macos.zip
- popd
before_script:
- if [[ "$TRAVIS_TAG" ]]; then export TILED_RELEASE=true ; fi
- if [[ "$TRAVIS_TAG" ]]; then export TILED_VERSION=${TRAVIS_TAG:1} ; fi
- if [[ "$TRAVIS_TAG" == "" ]]; then export TILED_VERSION=$(date "+%Y.%m.%d") ; fi
- if [[ "$TRAVIS_BRANCH" == "snapshot" ]]; then export TILED_SNAPSHOT=true ; fi