trans-test.py: fix use of colors
[android/external-libkmsxx.git] / .travis.yml
1 # Ubuntu 14.04 Trusty support
2 sudo: required
3 dist: trusty
5 # Only build test master & travis
6 branches:
7   only:
8   - master
9   - travis
11 # Enable C++ support
12 language: cpp
14 addons:
15   apt:
16     sources: &sources
17       - ubuntu-toolchain-r-test
18     packages: &packages
19       - libegl1-mesa-dev
20       - libgles2-mesa-dev
21       - libwayland-dev
22       - libx11-xcb-dev
23       - libx11-dev
24       - libgbm-dev
26 # Need MYCC and MYCXX as travis overwrites CC and CXX
28 matrix:
29   include:
30     - compiler: gcc
31       addons:
32         apt:
33           sources: *sources
34           packages: [*packages, 'g++-4.8']
35       env: MYCC=gcc-4.8 MYCXX=g++-4.8
37     - compiler: gcc
38       addons:
39         apt:
40           sources: *sources
41           packages: [*packages, 'g++-4.9']
42       # g++-4.9 gives a warning, disable it
43       env: MYCC=gcc-4.9 MYCXX=g++-4.9 CXXFLAGS=-Wno-maybe-uninitialized
45     - compiler: gcc
46       addons:
47         apt:
48           sources: *sources
49           packages: [*packages, 'g++-5']
50       env: MYCC=gcc-5 MYCXX=g++-5
52     - compiler: clang
53       addons:
54         apt:
55           sources: [*sources, 'llvm-toolchain-precise-3.8']
56           packages: [*packages, 'clang-3.8']
57       env: MYCC=clang-3.8 MYCXX=clang++-3.8
59 # Build steps
60 script:
61   - mkdir build
62   - cd build
63   - CC=$MYCC CXX=$MYCXX cmake -DTREAT_WARNINGS_AS_ERRORS=1 -DKMSXX_ENABLE_KMSCUBE=1 -DKMSXX_ENABLE_PYTHON=1 .. && make VERBOSE=1
65 notifications:
66   email:
67     - tomi.valkeinen@iki.fi