-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (26 loc) · 1.7 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
language: cpp
os:
- linux
compiler:
- gcc
- clang
before_install:
- sudo add-apt-repository -y ppa:boost-latest/ppa && sudo apt-get update
- if [[ $CXX == g++ ]]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get update && sudo apt-get install -y g++-4.9 && export CXX="g++-4.9" CC="gcc-4.9"; fi
- if [[ $CXX == clang++ ]]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
- if [[ $CXX == clang++ ]]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test; fi
- if [[ $CXX == clang++ ]]; then sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main' >> /etc/apt/sources.list"; fi
- if [[ $CXX == clang++ ]]; then sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.6 main' >> /etc/apt/sources.list" && sudo apt-get update; fi
- if [[ $CXX == clang++ ]]; then wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -; fi
- if [[ $CXX == clang++ ]]; then sudo apt-get update && sudo apt-get install -y clang-3.6 && export CXX="clang++-3.6" CC="clang-3.6"; fi
- if [ $TRAVIS_OS_NAME == linux ]; then sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots; fi
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update && sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libglm-dev; fi
#We need to install a version of GLEw from source that has OpenGL 4.5
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install libXmu-dev libXi-dev libgl-dev dos2unix wget && git clone --depth=3 https://github.com/nigels-com/glew.git glew && cd glew && sudo make install && cd ..; fi
before_script:
- mkdir build
- cd build
- cmake ..
script: make -j
after_success:
- echo "Success"