forked from mapeditor/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
114 lines (109 loc) · 3.73 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
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: [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
env:
- MAKEFLAGS=-j2
before_install:
- sudo add-apt-repository --yes ppa:beineri/opt-qt571-trusty
- sudo apt-get update -qq
- sudo apt-get -y install qt57base qt57svg qt57tools binutils zlib1g-dev
- source /opt/*/bin/qt*-env.sh
- openssl aes-256-cbc -K $encrypted_498dac83364f_key -iv $encrypted_498dac83364f_iv -in dist/butler_creds.enc -out butler_creds -d
script:
- mkdir Tiled ; cd Tiled/
- qmake ../tiled.pro TILED_LINUX_ARCHIVE=true
- make
- rm -rf src/
- find -name Makefile -delete
- cd ../
- cp LICENSE* COPYING *md Tiled/
- cp ./tiled.desktop Tiled/
- cp ./src/tiled/images/32x32/tiled.png Tiled/
- wget -c "https://update.mapeditor.org/linuxdeployqt/linuxdeployqt-9a1fbab-x86-64.appimage"
- chmod a+x linuxdeployqt-9a1fbab-x86-64.appimage
- unset LD_LIBRARY_PATH
- ./linuxdeployqt-9a1fbab-x86-64.appimage ./Tiled/tiled -appimage -verbose=2
- rm -rf Tiled/
- 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:
branch: snapshot
script: dist/linux/push-to-itch.sh
- os: linux
compiler: clang
env:
- QMAKESPEC=linux-clang
- MAKEFLAGS=-j2
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq qt5-default qttools5-dev-tools zlib1g-dev cppcheck xvfb
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_BRANCH" == "snapshot" ]]; then export TILED_SNAPSHOT=true ; fi