-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
30 lines (25 loc) · 1.31 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
language: c++
compiler:
- gcc
- clang
script: cmake . && make && ./all-catch-tests
# source: https://github.com/OpenLightingProject/ola/blob/master/.travis.yml
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo add-apt-repository ppa:h-rayflood/gcc-upper -y
- sudo add-apt-repository "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.8 main" -y
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo add-apt-repository ppa:ubuntu-cloud-archive/icehouse-staging -y
- sudo apt-get update
- if [ "$CXX" = "g++" ]; then sudo apt-get install g++-4.9; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
#Remove the old g++/gcc to ensure we're using the latest ones
- if [ "$CXX" = "g++-4.9" ]; then sudo rm /usr/bin/g++; sudo rm /usr/bin/gcc; fi
- if [ "$CXX" = "clang++" ]; then sudo apt-get install --force-yes clang-3.8; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
#Remove the old clang to ensure we're using the latest ones
- if [ "$CXX" = "clang++-3.8" ]; then sudo rm /usr/local/clang-3.4/bin/clang; sudo rm /usr/local/clang-3.4/bin/clang++; fi
#Report the compiler version
- $CXX --version
- sudo apt-get update
- sudo apt-get install libboost-thread-dev libboost-system-dev