1# Ubuntu 14.04 Trusty support 2sudo: required 3dist: trusty 4 5# Only build test master & travis 6branches: 7 only: 8 - master 9 - travis 10 11# Enable C++ support 12language: cpp 13 14addons: 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 25 26# Need MYCC and MYCXX as travis overwrites CC and CXX 27 28matrix: 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 36 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 44 45 - compiler: gcc 46 addons: 47 apt: 48 sources: *sources 49 packages: [*packages, 'g++-5'] 50 env: MYCC=gcc-5 MYCXX=g++-5 51 52 - compiler: gcc 53 addons: 54 apt: 55 sources: *sources 56 packages: [*packages, 'g++-6'] 57 env: MYCC=gcc-6 MYCXX=g++-6 58 59 - compiler: gcc 60 addons: 61 apt: 62 sources: *sources 63 packages: [*packages, 'g++-7'] 64 env: MYCC=gcc-7 MYCXX=g++-7 65 66 - compiler: clang 67 addons: 68 apt: 69 sources: [*sources, 'llvm-toolchain-precise-3.8'] 70 packages: [*packages, 'clang-3.8'] 71 env: MYCC=clang-3.8 MYCXX=clang++-3.8 72 73# Build steps 74script: 75 - mkdir build 76 - cd build 77 - CC=$MYCC CXX=$MYCXX cmake -DTREAT_WARNINGS_AS_ERRORS=1 -DKMSXX_ENABLE_KMSCUBE=1 -DKMSXX_ENABLE_PYTHON=1 .. && make VERBOSE=1 78 79notifications: 80 email: 81 - tomi.valkeinen@iki.fi 82