Browse code

travis: bump clang version

This should fix "suggest braces around initialization of subobject"
warning.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20191129104335.4518-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19203.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>

Lev Stipakov authored on 2019/11/29 19:43:35
Showing 1 changed files
... ...
@@ -46,16 +46,16 @@ matrix:
46 46
     - env: SSLLIB="openssl" EXTRA_CONFIG="--enable-iproute2"
47 47
       os: linux
48 48
       compiler: gcc
49
-    - env: SSLLIB="openssl" CFLAGS="-fsanitize=address"
49
+    - env: SSLLIB="openssl" CFLAGS="-fsanitize=address" CC=clang-9
50 50
       os: linux
51 51
       compiler: clang
52
-    - env: SSLLIB="openssl" OPENSSL_VERSION="1.1.1c"
52
+    - env: SSLLIB="openssl" OPENSSL_VERSION="1.1.1c" CC=clang-9
53 53
       os: linux
54 54
       compiler: clang
55 55
     - env: SSLLIB="mbedtls"
56 56
       os: linux
57 57
       compiler: gcc
58
-    - env: SSLLIB="mbedtls" CFLAGS="-fsanitize=address"
58
+    - env: SSLLIB="mbedtls" CFLAGS="-fsanitize=address" CC=clang-9
59 59
       os: linux
60 60
       compiler: clang
61 61
     - env: SSLLIB="openssl"
... ...
@@ -73,17 +73,21 @@ matrix:
73 73
     - env: SSLLIB="openssl" CHOST=i686-w64-mingw32
74 74
       os: linux
75 75
       compiler: ": Win32 build only"
76
-    - env: SSLLIB="openssl" EXTRA_CONFIG="--disable-lzo" EXTRA_SCRIPT="make distcheck"
76
+    - env: SSLLIB="openssl" EXTRA_CONFIG="--disable-lzo" EXTRA_SCRIPT="make distcheck" CC=clang-9
77 77
       os: linux
78 78
       compiler: clang
79
-    - env: SSLLIB="openssl" EXTRA_CONFIG="--enable-small"
79
+    - env: SSLLIB="openssl" EXTRA_CONFIG="--enable-small" CC=clang-9
80 80
       os: linux
81 81
       compiler: clang
82 82
 
83 83
 addons:
84 84
   apt:
85
+    sources:
86
+      - ubuntu-toolchain-r-test
87
+      - sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main'
88
+        key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
85 89
     update: true
86
-    packages: [ liblzo2-dev, libpam0g-dev, liblz4-dev, linux-libc-dev, man2html, mingw-w64]
90
+    packages: [ liblzo2-dev, libpam0g-dev, liblz4-dev, linux-libc-dev, man2html, mingw-w64 ]
87 91
   homebrew:
88 92
     update: true
89 93
     packages: [ lzo ]
... ...
@@ -95,6 +99,7 @@ cache:
95 95
   - ${HOME}/Library/Caches/Homebrew
96 96
 
97 97
 install:
98
+  - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_CPU_ARCH" != "ppc64le" ]; then sudo apt-get install clang-9; fi
98 99
   - if [ ! -z "${CHOST}" ]; then unset CC; fi
99 100
   - .travis/run-build-deps.sh
100 101