forked from Pingus/pingus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
100 lines (90 loc) · 2.82 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
# Pingus - A free Lemmings clone
# Copyright (C) 2015 Ingo Ruhnke <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Build file for https://travis-ci.org/
#
# Configuration manual:
# http://docs.travis-ci.com/user/build-configuration/
#
# Based on:
# https://github.com/supertuxkart/stk-code/blob/master/.travis.yml
# https://github.com/SuperTux/supertux/blob/master/.travis.yml
language: cpp
dist: trusty
sudo: required
compiler:
- gcc
- clang
matrix:
fast_finish: true
exclude:
- compiler: gcc
os: osx
os:
- linux
# - osx
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: "CPJBu4r8RDmeP7G78ODyk+A/J3vxEFr4xpQE0zIDtdCHcQmv2NqjM88YVH5pRWK4vtpAFuDEzyw4ZGKwfmwK5zhg2nUubsf47WpQmQa0z9HLasjXATzWwXGggx7mzlKODpkkccBzXHDAqvLKTkKBeXdxwMKFCtSgEM+3MwEwW6g="
matrix:
- BUILD_TYPE="Debug"
- BUILD_TYPE="Release"
before_install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-5.0"; fi
script:
# Clean from previous Travis build
- git clean -f
# Then build:
- mkdir "build-$BUILD_TYPE"
- cd "build-$BUILD_TYPE"
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DWARNINGS=ON -DWERROR=ON -DBUILD_TESTS=ON -DBUILD_EXTRA=ON
- make VERBOSE=1
- make VERBOSE=1 install DESTDIR=/tmp/pingus-${BUILD_TYPE}
- (cd .. && build-${BUILD_TYPE}/test_pingus)
# The branch coverity_scan is used to trigger the start of a coverity
# scan, merge the latest development version into and push it to start
# the scan.
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
packages:
- clang-5.0
- g++-4.9
- cmake
- build-essential
- libc++-dev
- libogg-dev
- libvorbis-dev
- libglew-dev
- libopenal-dev
- libboost-all-dev
- libsdl2-dev
- libsdl2-image-dev
- libsdl2-mixer-dev
- libjsoncpp-dev
coverity_scan:
project:
name: "Pingus/pingus"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "cmake . && make clean"
build_command: "make"
branch_pattern: coverity_scan
# EOF #