language: cpp

compiler:
  - clang

# install pre-reqs
install:
  - sudo apt-get install libmsgpack-dev libboost-regex-dev libboost-date-time-dev libboost-test-dev libboost-filesystem-dev libboost-system-dev libhiredis-dev

# Run the Build script
script:
  - cmake .
  - sudo make install
  - sudo ldconfig
  - bash ./run-tests.sh

language: cpp

compiler:
  - clang
  - gcc

before_install:
  # g++4.8.1
  - if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi

  # clang 3.4
  - if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi

  - sudo apt-get update -qq

install:
  # g++4.8.1
  - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi

  # clang 3.4
  - if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
  - if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi

  - sudo apt-get install libmsgpack-dev libboost-regex-dev libboost-date-time-dev libboost-test-dev libboost-filesystem-dev libboost-system-dev libhiredis-dev

# Run the Build script
script:
  - cmake .
  - sudo make install
  - sudo ldconfig
  - bash ./run-tests.sh

Use compiler with C++11 on Travis
Use compiler with C++11 on Travis
