sudo: required
dist: trusty
language: cpp

python: 3.5

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 apt-get update -qq
script:
  - cd projects
  - python3 generate.py && pushd linux && make && pushd divida-tests && ./divida-tests

sudo: required
dist: trusty
language: cpp

python: 3.5

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
      - llvm-toolchain-precise-3.7
    packages:
      - clang-3.7
env: COMPILER=clang++-3.7

before_install:
  - sudo apt-get update -qq
script:
  - cd projects
  - python3 generate.py && pushd linux && make CXX=$COMPILER && pushd divida-tests && ./divida-tests

Use custom version of Clang when building with Travis CI.
Use custom version of Clang when building with Travis CI.