# Use new trusty images, should yield newer compilers and packages
sudo: required
dist: precise
# Enable C++ support
language: cpp

# Compiler selection
matrix:
  include:
    - compiler: gcc
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-5
      env: COMPILER=g++-5
    - compiler: clang
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
            - llvm-toolchain-precise-3.7
          packages:
            - clang-3.7
      env: COMPILER=clang++-3.7

before_install:
  - sudo add-apt-repository --yes ppa:kalakris/cmake
  - sudo apt-get update -qq
  - sudo apt-get install -y libopencv-dev
  - sudo apt-get install -y cmake
# Build steps
script:
  - mkdir build
  - cd build
  - cmake .. && make
  - ./dsa_test


# Use new trusty images, should yield newer compilers and packages
sudo: required
dist: precise
# Enable C++ support
language: cpp

# Compiler selection
matrix:
  include:
    - compiler: clang
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
            - llvm-toolchain-precise-3.7
          packages:
            - clang-3.7
      env: COMPILER=clang++-3.7

before_install:
  - sudo add-apt-repository --yes ppa:kalakris/cmake
  - sudo apt-get update -qq
  - sudo apt-get install -y libopencv-dev
  - sudo apt-get install -y cmake
# Build steps
script:
  - mkdir build
  - cd build
  - cmake .. && make
  - ./dsa_test


Remove gcc build matrix, use only clang
Remove gcc build matrix, use only clang
