-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
49 lines (42 loc) · 1.33 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
language: cpp
compiler:
- gcc
- clang
before_install:
# No SDL2 in the default repos yet
- sudo apt-add-repository ppa:zoogie/sdl2-snapshots -y
# GCC 4.8 not in the repos either
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get -qq update
- sudo apt-get install -qq g++-4.8 # Needed for newer stdlib
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- sudo apt-get -qq install cmake build-essential libsdl2-dev libsdl2-ttf-dev bison flex libpng-dev
install:
- cd $TRAVIS_BUILD_DIR
- cmake .
script:
- make -j2
notifications:
irc:
channels:
- "irc.oftc.net#freerct"
on_success: change
on_failure: always
template:
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
- "Change view : %{compare_url}"
- "Build details : %{build_url}"
use_notice: true
skip_join: true
env:
global:
secure: hG7oaDFfJcgeuNfIu5x3RlQrj7qIhxzV4EEZsGTMvGMVY64cjVgpR5Mtyd04ZBBJuWxJ4FT/USOFlotLxYAwpEp92DAeHsBUVQzsiIrx0JNWxsxadZ6bR32WgKfx6bDCMLLY92CdByKFUCsBzZXAidNd+KIEs/5IHkYxKEGdjlY=
addons:
coverity_scan:
project:
name: "FreeRCT/FreeRCT"
description: "Build from Travis-CI"
build_command_prepend: "cmake ."
build_command: "make -j2"
notification_email: [email protected]
branch_pattern: master