]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Restructure Travis configuration
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 29 Jun 2019 18:39:00 +0000 (20:39 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 1 Jul 2019 19:30:02 +0000 (21:30 +0200)
In preparation for switching from zlib to zstd. I find it easier to use
a flat job list instead of a matrix and state settings explicitly for
the different jobs.

.travis.yml

index 2fde4bda9e0e077f7405a27f2173dc3fcbe14054..5ec08e37bd2c3bbc417220c99888240a386bd1f8 100644 (file)
 language: c
 
-addons:
-    apt:
+script:
+  - ./autogen.sh
+  - ./configure $CONFIGURE
+  - make
+  - make ${TEST:-test}
+
+matrix:
+  include:
+
+  # Job 1:
+  - os: linux
+    compiler: gcc
+    addons:
+      apt:
         packages:
-            - gperf
-            - elfutils
-            - zlib1g-dev
+        - elfutils
+        - gperf
+        - zlib1g-dev
 
-os:
-    - linux
-    - osx
+  # Job 2:
+  - os: linux
+    compiler: clang
+    addons:
+      apt:
+        packages:
+        - elfutils
+        - gperf
+        - zlib1g-dev
 
-compiler:
-    - gcc
-    - clang
+  # Job 3:
+  - os: osx
+    compiler: clang
 
-matrix:
-    include:
-        - os: linux
-          compiler: gcc
-          env: CFLAGS="-m32 -g -O2" LDFLAGS="-m32" HOST="--host=i386-linux-gnu"
-          addons:
-              apt:
-                  packages:
-                      - gcc-multilib
-                      - gperf
-                      - lib32z1-dev
-        - os: linux
-          compiler: i686-w64-mingw32-gcc
-          env: HOST="--host=i686-w64-mingw32" TEST="unittest/run.exe"
-          addons:
-              apt:
-                  packages:
-                      - gcc-mingw-w64-i686
-                      - gperf
-        - os: linux
-          compiler: clang
-          env: CFLAGS="-fsanitize=undefined" LDFLAGS="-fsanitize=undefined" ASAN_OPTIONS="detect_leaks=0"
-        - os: linux
-          compiler: clang
-          env: CFLAGS="-fsanitize=address -g" LDFLAGS="-fsanitize=address" ASAN_OPTIONS="detect_leaks=0"
-        - os: linux
-          compiler: clang
-          env: PATH="/usr/bin:$PATH" TEST=analyze
-          addons:
-              apt:
-                  packages:
-                      - clang    # scan-build
-                      - gperf
-        - os: linux
-          compiler: gcc
-          env: CUDA=8.0.61-1
-          sudo: required
-          before_install:
-              - source ./.travis/install_cuda.sh
+  # Job 4:
+  - os: linux
+    compiler: gcc
+    env: CFLAGS="-m32 -g -O2" LDFLAGS="-m32" CONFIGURE="--host=i386-linux-gnu"
+    addons:
+      apt:
+        packages:
+        - gcc-multilib
+        - gperf
+        - lib32z1-dev
+
+  # Job 5:
+  - os: linux
+    compiler: i686-w64-mingw32-gcc
+    env: CONFIGURE="--host=i686-w64-mingw32" TEST="unittest/run.exe"
+    addons:
+      apt:
+        packages:
+        - elfutils
+        - gperf
+        - zlib1g-dev
 
-    exclude:
-        - os: osx
-          compiler: gcc
+  # Job 6:
+  - os: linux
+    compiler: clang
+    env: CFLAGS="-fsanitize=undefined" LDFLAGS="-fsanitize=undefined" ASAN_OPTIONS="detect_leaks=0"
+    addons:
+      apt:
+        packages:
+        - elfutils
+        - gperf
+        - zlib1g-dev
 
-script:
-    - ./autogen.sh
-    - ./configure $HOST
-    - make
-    - make ${TEST:-test}
+  # Job 7:
+  - os: linux
+    compiler: clang
+    env: CFLAGS="-fsanitize=address -g" LDFLAGS="-fsanitize=address" ASAN_OPTIONS="detect_leaks=0"
+    addons:
+      apt:
+        packages:
+        - elfutils
+        - gperf
+        - zlib1g-dev
+
+  # Job 8:
+  - os: linux
+    compiler: clang
+    env: PATH="/usr/bin:$PATH" TEST=analyze
+    addons:
+      apt:
+        packages:
+        - clang  # for scan-build
+        - gperf
+        - zlib1g-dev
+
+  # Job 9:
+  - os: linux
+    compiler: gcc
+    env: CUDA=8.0.61-1
+    sudo: required
+    addons:
+      apt:
+        packages:
+        - elfutils
+        - gperf
+        - zlib1g-dev
+    before_install:
+    - source ./.travis/install_cuda.sh