summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-09-30 12:49:29 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-09-30 13:35:04 +0300
commit3d3883bd816099d3915d662d67c52e0fd24f14cb (patch)
treed966af571d3ef3333874321c832fb517b6b3bccf
parent1852a37054072aca377cc0e46d88d8b6d8c575a6 (diff)
Travis: test different gcc versions
-rw-r--r--.travis.yml57
1 files changed, 32 insertions, 25 deletions
diff --git a/.travis.yml b/.travis.yml
index 30e8f2a..2a2ce18 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,36 +2,43 @@
sudo: required
dist: trusty
-addons:
- apt:
- sources:
- - llvm-toolchain-precise-3.8
- - ubuntu-toolchain-r-test
- packages:
- - clang-3.8
- - g++-5
- - gcc-5
- - libegl1-mesa-dev
- - libgles2-mesa-dev
- - libwayland-dev
- - libx11-xcb-dev
- - libx11-dev
- - libgbm-dev
-
-install:
- - if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- - if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
-
# Enable C++ support
language: cpp
-# Compiler selection
-compiler:
- - gcc
- - clang
+# Need MYCC and MYCXX as travis overwrites CC and CXX
+
+matrix:
+ include:
+ - compiler: gcc
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-4.8', 'libegl1-mesa-dev', 'libgles2-mesa-dev', 'libwayland-dev', 'libx11-xcb-dev', 'libx11-dev', 'libgbm-dev']
+ env: MYCC=gcc-4.8 MYCXX=g++-4.8
+
+ - compiler: gcc
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-4.9', 'libegl1-mesa-dev', 'libgles2-mesa-dev', 'libwayland-dev', 'libx11-xcb-dev', 'libx11-dev', 'libgbm-dev']
+ env: MYCC=gcc-4.9 MYCXX=g++-4.9
+
+ - compiler: gcc
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-5', 'libegl1-mesa-dev', 'libgles2-mesa-dev', 'libwayland-dev', 'libx11-xcb-dev', 'libx11-dev', 'libgbm-dev']
+ env: MYCC=gcc-5 MYCXX=g++-5
+
+ - compiler: clang
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8']
+ packages: ['clang-3.8', 'libegl1-mesa-dev', 'libgles2-mesa-dev', 'libwayland-dev', 'libx11-xcb-dev', 'libx11-dev', 'libgbm-dev']
+ env: MYCC=clang-3.8 MYCXX=clang++-3.8
# Build steps
script:
- mkdir build
- cd build
- - cmake -DKMSXX_ENABLE_KMSCUBE=1 -DKMSXX_ENABLE_PYTHON=1 .. && make
+ - CC=$MYCC CXX=$MYCXX cmake -DKMSXX_ENABLE_KMSCUBE=1 -DKMSXX_ENABLE_PYTHON=1 .. && make