forked from mapeditor/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (44 loc) · 1.62 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
language: cpp
sudo: required
dist: trusty
services:
- docker
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
matrix:
include:
- os: linux
compiler: gcc
- os: linux
compiler: clang
env: QMAKESPEC=linux-clang
- os: osx
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt5 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link qt5 --force ; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo apt-get update -qq ; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo apt-get install -qq qt5-default qttools5-dev-tools zlib1g-dev cppcheck xvfb ; fi
- qmake -version
script:
- qmake
- make
- pushd tests/
- qmake
- make
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then for test in `find -executable -type f`; do pushd `dirname $test`; xvfb-run -a ./`basename $test`||exit 1; popd; done ; fi
- popd
after_script:
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then cppcheck --enable=all -q -Isrc/libtiled `git ls-files src/\*.cpp` ; fi