linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/4] travis: build against multiple gcc versions
@ 2018-07-28 22:31 Marcelo Ricardo Leitner
  0 siblings, 0 replies; only message in thread
From: Marcelo Ricardo Leitner @ 2018-07-28 22:31 UTC (permalink / raw)
  To: linux-sctp

To improve our coverage, lets build the library against all gcc versions
that travis-ci.org provides. All of them will be using the latest kernel
version only.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
---
 .travis.yml | 65 ++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 59 insertions(+), 6 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index c0fb7c68c4977c7185cd05df1b88b6d552cfa59f..6b06efc7a16ef4085091f27202b7a3832eccd405 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,15 +6,68 @@ addons:
 script:
   - ./.travis/linux-build.sh
 env:
-  - KERNEL=4.10
-  - KERNEL=4.11
-  - KERNEL=4.12
-  - KERNEL=4.13
-  - KERNEL=4.16
-  - KERNEL=4.17
+  global:
+    - KERNEL=4.17
+  matrix:
+    - KERNEL=4.10
+    - KERNEL=4.11
+    - KERNEL=4.12
+    - KERNEL=4.13
+    - KERNEL=4.16
+    - KERNEL=4.17
 compiler:
   - gcc
   - clang
+
+matrix:
+  include:
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - libelf-dev
+            - g++-4.9
+      env:
+        - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
+
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - libelf-dev
+            - g++-5
+      env:
+        - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
+
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - libelf-dev
+            - g++-6
+      env:
+        - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
+
+    - os: linux
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - libelf-dev
+            - g++-7
+      env:
+        - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
+before_install:
+  - eval "${MATRIX_EVAL}"
+  - $CC --version
+
 notifications:
   email:
     - linux-sctp@vger.kernel.org
-- 
2.17.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-28 22:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-28 22:31 [PATCH 2/4] travis: build against multiple gcc versions Marcelo Ricardo Leitner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).