This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
56 lines (49 loc) · 1.99 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
# Game-in-a-box. Simple First Person Shooter Network Game.
# Copyright (C) 2012-2013 Richard Maxwell <[email protected]>
#
# This file is part of Game-in-a-box
#
# Game-in-a-box is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
language: cpp
compiler:
- clang
- gcc
install:
# Clang dependencies
- if [ $CXX = "clang++" ]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
sudo apt-get update -qq;
sudo apt-get install -qq libstdc++-4.8-dev;
fi;
# GCC dependencies
# I'm building with GCC 4.8. Getting that on travis ci is a bit of work.
- if [ $CXX = "g++" ]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
sudo apt-get update -qq;
sudo apt-get install -qq gcc-4.8 g++-4.8;
sudo rm /usr/bin/g++;
sudo rm /usr/bin/gcc;
sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++;
sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc;
fi;
# libraries needed for everything else.
- sudo apt-get -q install cmake valgrind libboost1.48-dev libboost-system1.48-dev libboost-thread1.48-dev
script:
- mkdir build
- cd build
- cmake ../
- make
after_success:
- valgrind -v --leak-check=full --show-reachable=yes --suppressions=../test/Network/Network.supp --track-origins=yes ./game-in-a-box-network-tests
- valgrind -v --leak-check=full --show-reachable=yes --track-origins=yes ./game-in-a-box-unused-tests