language: cpp

compiler:
  - gcc
# - clang //disabled for now until i find clang >= 3.5

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

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

  - sudo apt-get update -qq

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

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

  - sudo apt-get install libblkid-dev libqt4-dev gcc g++ libcryptsetup-dev cmake libgcrypt11-dev pkg-config libdevmapper-dev uuid-dev libudev-dev chrpath bzip2 debhelper

script: cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=lib -DCMAKE_BUILD_TYPE=release . && make
