forked from RigsOfRods/rigs-of-rods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
82 lines (72 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
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
language: cpp
sudo: false
cache:
directories:
- $HOME/deps-install
compiler:
- gcc
- clang
addons:
# The following updates are needed for Travis VM running Ubuntu 12.04 and should be removed when Travis updates their OS
# update gcc for C++11 support
apt:
sources:
- ubuntu-toolchain-r-test
- boost-latest
- george-edison55-precise-backports
packages:
- gcc-4.8
- g++-4.8
- libboost1.55-all-dev
- cmake
- cmake-data
- doxygen
- graphviz
- build-essential
- git
- pkg-config
- libfreetype6-dev
- libfreeimage-dev
- libzzip-dev
- libois-dev
- libgl1-mesa-dev
- libglu1-mesa-dev
- libopenal-dev
- libx11-dev
- libxt-dev
- libxaw7-dev
- libxrandr-dev
- libssl-dev
- libcurl4-openssl-dev
- libgtk2.0-dev
- libwxgtk2.8-dev
before_install:
# show some information about the build host
- cat /proc/cpuinfo | grep -m1 "model name" # CPU model
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
install:
- export DEPS_BUILD_DIR=$HOME/deps-build
- export DEPS_INSTALL_DIR=$HOME/deps-install
- export PKG_CONFIG_PATH=$DEPS_INSTALL_DIR/lib/pkgconfig
# build dependencies if cached dir is empty
- if [ ! "$(ls -A $HOME/deps-install)" ]; then sh ./tools/travis/linux/dependencies.sh; fi
script:
- sh ./tools/travis/linux/build.sh
after_success:
- sh ./tools/travis/linux/deploy_docs.sh
notifications:
email: false
irc:
template:
- "%{repository}#%{build_number} %{commit} %{author}: %{message} %{build_url}"
channels:
- "irc.freenode.org#rigsofrods-dev"
use_notice: true
on_success: change
on_failure: always
webhooks:
urls:
- https://webhooks.gitter.im/e/cc9257d43908894e2e27
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false