diff options
author | Alec Thomas <alec@swapoff.org> | 2013-04-02 00:19:30 -0400 |
---|---|---|
committer | Alec Thomas <alec@swapoff.org> | 2013-04-02 14:06:24 -0400 |
commit | e569dc47c9ff3c3118cb96427d3ec9a6aced98aa (patch) | |
tree | 65e5bce42f0950faca74c1e270b7ea6e45df8c31 /.travis.yml | |
parent | 800ca63c81d3501b84eb625a273847b2ad6e1f19 (diff) |
Add support for Travis-CI.
Also ditched glog.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e7ac9b8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: cpp +compiler: + - clang + - gcc +before_install: + - sudo apt-add-repository -y ppa:jkeiren/ppa + - if test $CC = gcc; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi + - sudo apt-get update -qq + - sudo apt-get upgrade -y + - sudo apt-get install -y boost1.48 + - if test $CC = gcc; then sudo apt-get install gcc-4.7 g++-4.7; fi + - if test $CC = gcc; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 20; fi + - if test $CC = gcc; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 20; fi + - if test $CC = gcc; then sudo update-alternatives --config gcc; fi + - if test $CC = gcc; then sudo update-alternatives --config g++; fi + +script: cmake -DBUILD_TESTING=1 && make && make test |