forked from mapeditor/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
116 lines (111 loc) · 4.16 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: trusty
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "J8Y+eQD0p5YPOlhBEPFgpZzhRFjXC4phiiFtGV3JaYX34wxCsyyNhMStMqIZTBL4D9lQojfLgXODBDaqT1iSHDe1oonosnyYnGBIJElez247pjuNiSSvcAbYa9RQnwfHe8JFphQHViURbv0OfqpHHyAlHy5b8nrPYWG2xmHA5nY="
addons:
coverity_scan:
project:
name: "bjorn/tiled"
description: "A generic tile map editor"
notification_email: bjorn@lindeijer.nl
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
before_install:
- sudo add-apt-repository --yes ppa:beineri/opt-qt591-trusty
- sudo apt-get update -qq
- sudo apt-get -y install qt59base qt59svg qt59imageformats qt59tools qt59qbs binutils zlib1g-dev
- source /opt/qt59/bin/qt59-env.sh
script:
- qbs --version
- qbs setup-toolchains --detect
- qbs setup-qt --detect
- qbs config defaultProfile qt-5-9-1
- qbs install --install-root Tiled/usr release Tiled.version:$TILED_VERSION
- cp LICENSE* COPYING *md Tiled/
after_success:
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" -O linuxdeployqt
- chmod a+x linuxdeployqt
- unset QTDIR; unset QT_PLUGIN_PATH; unset LD_LIBRARY_PATH
- mkdir -p Tiled/usr/plugins/imageformats
- cp /opt/qt59/plugins/imageformats/libqsvg.so Tiled/usr/plugins/imageformats/
- ./linuxdeployqt ./Tiled/usr/share/applications/tiled.desktop -bundle-non-qt-libs -verbose=2
- ./linuxdeployqt ./Tiled/usr/share/applications/tiled.desktop -appimage
- 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
deploy:
- provider: releases
skip_cleanup: true
draft: true
api_key:
secure: g8B2MDEElF5v1K1awuhB1C54Fbl2eUmKdfJTPhYC8kYiLoWClgufOPavJOHO+hH5us1LtbCvOa6Z+lrSe9YnuwNcV2MKENQQ4CjpViEI51wpAOM1/WW+C7tDu2BNFKCJjldRrSGttFD2lgVbNYBY7w56/2stZNRBuTfdE8YZEFc=
file: Tiled*.AppImage
file_glob: true
on:
repo: bjorn/tiled
tags: true
- provider: script
skip_cleanup: true
script: curl --upload-file $(ls Tiled*.AppImage) https://transfer.sh/Tiled.AppImage
on:
all_branches: true
- provider: script
skip_cleanup: true
on:
repo: bjorn/tiled
branch: snapshot
script: dist/linux/push-to-itch.sh
- os: linux
compiler: clang
env:
- QMAKESPEC=linux-clang
- MAKEFLAGS=-j2
before_install:
- sudo add-apt-repository --yes ppa:beineri/opt-qt542-trusty
- sudo apt-get update -qq
- sudo apt-get -y install qt54base qt54svg qt54tools binutils zlib1g-dev cppcheck xvfb
- source /opt/qt54/bin/qt54-env.sh
script:
- qmake
- make
- pushd tests/
- qmake
- make
- for test in `find -executable -type f`; do pushd `dirname $test`; xvfb-run -a ./`basename $test`||exit 1; popd; done
- popd
after_script:
- cppcheck --enable=all -q -Isrc/libtiled `git ls-files src/\*.cpp`
- os: osx
before_install:
- brew update
- brew install qt5
- brew link qt5 --force
script:
- qmake
- make
- pushd tests/
- qmake
- make
- popd
before_script:
- qmake -version
- 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