linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: linux-sctp@vger.kernel.org
Subject: [PATCH 2/4] travis: build against multiple gcc versions
Date: Sat, 28 Jul 2018 22:31:21 +0000	[thread overview]
Message-ID: <79183dc4552b3c8945042af1b7aa2ea06da3ea80.1532816583.git.marcelo.leitner@gmail.com> (raw)

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


                 reply	other threads:[~2018-07-28 22:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=79183dc4552b3c8945042af1b7aa2ea06da3ea80.1532816583.git.marcelo.leitner@gmail.com \
    --to=marcelo.leitner@gmail.com \
    --cc=linux-sctp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).