]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Improve the Travis build matrix
authorAnders F Björklund <anders.f.bjorklund@gmail.com>
Sun, 1 Apr 2018 07:39:15 +0000 (09:39 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 23 Apr 2018 19:51:15 +0000 (21:51 +0200)
Run in containers where possible, save the installations for the
targets that actually need to do them (currently: mingw and cuda)

.travis.yml

index a4793bb8aad11d316f01818916574f4f40c6dae3..7cb987ce44487210ca94648441fa79231c4abd53 100644 (file)
@@ -1,16 +1,11 @@
 language: c
 
-sudo: required
-
 addons:
     apt:
         packages:
             - gperf
             - elfutils
             - zlib1g-dev
-            - mingw32
-            - mingw32-binutils
-            - clang    # scan-build
 
 os:
     - linux
@@ -22,9 +17,13 @@ compiler:
 
 matrix:
     include:
-#        - os: linux
-#          compiler: i586-mingw32msvc-gcc
-#          env: HOST="--host=i586-mingw32msvc" TEST="test/main.exe"
+        - os: linux
+          compiler: i686-w64-mingw32-gcc
+          env: HOST="--host=i686-w64-mingw32" TEST="unittest/run.exe"
+          addons:
+              apt:
+                  packages:
+                      - gcc-mingw-w64-i686
         - os: linux
           compiler: clang
           env: CFLAGS="-fsanitize=undefined" ASAN_OPTIONS="detect_leaks=0"
@@ -34,17 +33,21 @@ matrix:
         - os: linux
           compiler: clang
           env: PATH="/usr/bin:$PATH" TEST=analyze
+          addons:
+              apt:
+                  packages:
+                      - clang    # scan-build
         - os: linux
           compiler: gcc
           env: CUDA=8.0.61-1
+          sudo: required
+          before_install:
+              - source ./.travis/install_cuda.sh
 
     exclude:
         - os: osx
           compiler: gcc
 
-before_install:
-    - source ./.travis/install_cuda.sh
-
 script:
     - ./autogen.sh
     - ./configure $HOST