-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
40 lines (38 loc) · 845 Bytes
/
.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
# Cpp language
language: cpp
sudo: required
dist: trusty
# Compiler selection
compiler:
- clang
- gcc
# Enable caching
cache:
apt: true
# Build matrix
addons:
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- clang-3.8
- g++-5
- gcc-5
- cmake
- cmake-data
- libpthread-stubs0-dev
- libgl1-mesa-dev
- libboost-system-dev
- libboost-filesystem-dev
- xorg-dev
# Install
install:
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
# Build steps
script:
- mkdir build
- cd build
- cmake .. && make