-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
30 lines (25 loc) · 983 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
language: cpp
compiler:
- gcc
- clang
before_install:
- if [[ $NEW_GCC == true ]]; then sudo apt-get --purge remove gcc; fi;
- if [[ $NEW_GCC == true ]]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi;
- if [[ $NEW_GCC == true ]]; then sudo apt-get -qq update; fi;
- if [[ $NEW_GCC == true ]]; then sudo apt-get -qq install g++-4.8; fi;
- if [[ $NEW_GCC == true ]]; then sudo apt-get -qq install gcc-4.8; fi;
- if [[ $NEW_GCC == true ]]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90; fi;
- if [[ $NEW_GCC == true ]]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90; fi;
- if [[ $NEW_GCC == true ]]; then sudo apt-get install liblo-dev; fi;
script:
- mkdir build && cd build
- cmake ..
- make
- ctest --output-on-failure
env:
- NEW_GCC=true
- NEW_GCC=false
matrix:
exclude:
- compiler: clang
env: NEW_GCC=true