aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: e7ac9b837e27ac9e809f9e9cb1cb0107c97ae773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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