language:
  cpp

dist: 
  trusty

addons:
  apt:
    sources:
      - llvm-toolchain-precise-5.0
      - ubuntu-toolchain-r-test
    packages:
      - clang-5.0
      - libassimp-dev
      - libfreetype6-dev
      - libgl1-mesa-dev
      - libopenal-dev
      - libsndfile1-dev
      - libx11-dev
      - libxcb-cursor-dev
      - libxcb-ewmh-dev
      - libxcb-icccm4-dev
      - libxcb-keysyms1-dev
      - libxcb-randr0-dev
      - mesa-common-dev

sudo:
  false

notifications:
  email: true

compiler:
  - clang

env:
  global:
    - COMPILER=clang++-5.0
    - CFLAGS="-Wall -Wextra" 
    - CXXFLAGS="-Wall -Wextra"
  matrix:
    - CONFIG=debug
    - CONFIG=release

script:
  - cd build &&
    ./premake5-linux64 --cc=clang gmake
  - cd gmake &&
    make -j4 config=${CONFIG}dynamic_x64

after_success:
  - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../lib/gmake/x64/:../extlibs/lib/gmake/x64/ &&
    cd ../../tests &&
    ./NazaraUnitTestsServer

language:
  cpp

dist: 
  trusty

addons:
  apt:
    sources:
      - llvm-toolchain-precise-3.7
      - ubuntu-toolchain-r-test
    packages:
      - clang-3.7
      - libassimp-dev
      - libfreetype6-dev
      - libgl1-mesa-dev
      - libopenal-dev
      - libsndfile1-dev
      - libx11-dev
      - libxcb-cursor-dev
      - libxcb-ewmh-dev
      - libxcb-icccm4-dev
      - libxcb-keysyms1-dev
      - libxcb-randr0-dev
      - mesa-common-dev

sudo:
  false

notifications:
  email: true

compiler:
  - clang

env:
  global:
    - COMPILER=clang++-3.7
    - CFLAGS="-Wall -Wextra" 
    - CXXFLAGS="-Wall -Wextra"
  matrix:
    - CONFIG=debug
    - CONFIG=release

script:
  - cd build &&
    ./premake5-linux64 --cc=clang gmake
  - cd gmake &&
    make -j4 config=${CONFIG}dynamic_x64

after_success:
  - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../lib/gmake/x64/:../extlibs/lib/gmake/x64/ &&
    cd ../../tests &&
    ./NazaraUnitTestsServer

Revert "Travis: Try to use Clang 5.0 again"
Revert "Travis: Try to use Clang 5.0 again"

This reverts commit 43eb5ec929ca0416b183c5dde233ec0561081e9b.
