30e8f2a1480d6b602412ceb2bdfb699ba9d7d081
[android/external-libkmsxx.git] / .travis.yml
1 # Ubuntu 14.04 Trusty support
2 sudo: required
3 dist: trusty
5 addons:
6     apt:
7         sources:
8             - llvm-toolchain-precise-3.8
9             - ubuntu-toolchain-r-test
10         packages:
11             - clang-3.8
12             - g++-5
13             - gcc-5
14             - libegl1-mesa-dev
15             - libgles2-mesa-dev
16             - libwayland-dev
17             - libx11-xcb-dev
18             - libx11-dev
19             - libgbm-dev
21 install:
22     - if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
23     - if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
25 # Enable C++ support
26 language: cpp
28 # Compiler selection
29 compiler:
30   - gcc
31   - clang
33 # Build steps
34 script:
35   - mkdir build
36   - cd build
37   - cmake -DKMSXX_ENABLE_KMSCUBE=1 -DKMSXX_ENABLE_PYTHON=1 .. && make