forked from bingmann/sound-of-sorting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 1.19 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
language: cpp
branches:
only:
- master
env:
global:
- CXXFLAGS="-W -Wall"
matrix:
# gcc builds
- BUILD_CC="gcc-4.4" BUILD_CXX="g++-4.4"
- BUILD_CC="gcc-4.6" BUILD_CXX="g++-4.6"
- BUILD_CC="gcc-4.7" BUILD_CXX="g++-4.7"
- BUILD_CC="gcc-4.8" BUILD_CXX="g++-4.8"
# not yet: - BUILD_CC="gcc-4.9" BUILD_CXX="g++-4.9"
# clang builds
- BUILD_CC="clang" BUILD_CXX="clang++"
install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
- sudo apt-get install libsdl1.2-dev
- if [ "$BUILD_CXX" == "g++-4.4" ]; then sudo apt-get install g++-4.4 libwxgtk2.8-dev; fi
- if [ "$BUILD_CXX" == "g++-4.6" ]; then sudo apt-get install g++-4.6 libwxgtk2.8-dev; fi
- if [ "$BUILD_CXX" == "g++-4.7" ]; then sudo apt-get install g++-4.7 libwxgtk2.8-dev; fi
- if [ "$BUILD_CXX" == "g++-4.8" ]; then sudo apt-get install g++-4.8 libwxgtk3.0-dev; fi
- if [ "$BUILD_CXX" == "g++-4.9" ]; then sudo apt-get install g++-4.9 libwxgtk3.0-dev; fi
- if [ "$BUILD_CXX" == "clang++" ]; then sudo apt-get install libwxgtk2.8-dev; fi
before_script:
- mkdir build && cd build && ../configure CC=$BUILD_CC CXX=$BUILD_CXX
script:
- make
- make check