forked from OpenDungeons/OpenDungeons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 1.01 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
language: cpp
sudo: required
dist: trusty
os:
- linux
# would be nice to check build with osx
# - osx
compiler:
- gcc
#addons:
#apt:
#packages:
#- make
#- cmake
#- binutils-dev
before_install:
- gcc --version
- sudo apt-get update -qq
# OD dependencies
- sudo apt-get install -y cmake pkg-config libogre-1.9-dev libopenal-dev libsfml-dev libois-dev
- sudo apt-get install -y libboost-filesystem-dev libboost-locale-dev libboost-program-options-dev libboost-date-time-dev libboost-thread-dev libboost-system-dev libboost-test-dev
# Install CEGUI from GetDeb
- wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
- sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu trusty-getdeb games" >> /etc/apt/sources.list.d/getdeb.list'
- sudo apt-get update -qq; sudo apt-get install -y libcegui-0.8-dev
script:
- cmake . -DOD_BUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release
- make -j2
- make install DESTDIR=./install-root
- ./scripts/unix/run_unit_tests.sh
#cache: apt