[PATCH 2/4] travis: build against multiple gcc versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 .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@xxxxxxxxxxxxxxx
-- 
2.17.1

--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux