Browse Source

.travis.yml: Add compilation with gcc 5 and gcc 6

Now that we have a way to correctly set a matching coverage tool, we can
add more recent compiler versions to the Travis build.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
David Gibson 9 years ago
parent
commit
b137aba87d
1 changed files with 36 additions and 0 deletions
  1. 36 0
      .travis.yml

+ 36 - 0
.travis.yml

@@ -5,6 +5,22 @@ matrix:
   include:
   include:
   - compiler: gcc
   - compiler: gcc
     env: CFLAGS="-std=gnu99"
     env: CFLAGS="-std=gnu99"
+  - compiler: gcc-5
+    env: GCOV="gcov-5"
+    addons:
+      apt:
+        sources:
+          - ubuntu-toolchain-r-test
+        packages:
+          - gcc-5
+  - compiler: gcc-6
+    env: GCOV="gcov-6"
+    addons:
+      apt:
+        sources:
+          - ubuntu-toolchain-r-test
+        packages:
+          - gcc-6
   - compiler: clang
   - compiler: clang
     addons:
     addons:
       apt:
       apt:
@@ -17,6 +33,26 @@ matrix:
           - valgrind
           - valgrind
     env: CFLAGS="-std=gnu99"
     env: CFLAGS="-std=gnu99"
     compiler: gcc
     compiler: gcc
+  - dist: trusty
+    compiler: gcc-5
+    env: GCOV="gcov-5"
+    addons:
+      apt:
+        sources:
+          - ubuntu-toolchain-r-test
+        packages:
+          - gcc-5
+          - valgrind
+  - dist: trusty
+    compiler: gcc-6
+    env: GCOV="gcov-6"
+    addons:
+      apt:
+        sources:
+          - ubuntu-toolchain-r-test
+        packages:
+          - gcc-6
+          - valgrind
 
 
 script:
 script:
     - make -j2 -k quiet=1
     - make -j2 -k quiet=1