Update travis build infrastructure
authorsfan5 <sfan5@live.de>
Sun, 8 Mar 2020 20:03:44 +0000 (21:03 +0100)
committersfan5 <sfan5@live.de>
Wed, 11 Mar 2020 23:10:09 +0000 (00:10 +0100)
Ubuntu 14.04 -> 18.04
clang-format, clang-tidy 7 -> 8
clang 3.6 -> 3.9
clang 7 -> 9

.travis.yml
util/travis/common.sh

index ca92940dca4e404ee2026538408494d4da61f28e..7b224b549861ffa98efd0d4d5e6a99948e3c2af4 100644 (file)
@@ -1,8 +1,8 @@
 language: cpp
 before_install: ./util/travis/before_install.sh
 script: ./util/travis/script.sh
-sudo: required
-dist: trusty
+os: linux
+dist: bionic
 group: edge
 notifications:
   email: false
@@ -10,21 +10,17 @@ matrix:
   fast_finish: true
   include:
 
-    - env: CLANG_FORMAT=clang-format-7
+    - env: CLANG_FORMAT=clang-format-8
       compiler: clang
       os: linux
       addons:
         apt:
-          packages: ['clang-format-7']
-          sources: &sources
-            - ubuntu-toolchain-r-test
-            - llvm-toolchain-trusty-7
+          packages: ['clang-format-8']
 
     - name: "Builtin Luacheck and Unit Tests"
       language: generic
       compiler: null
       os: linux
-      sudo: false
       addons:
         apt:
           packages:
@@ -36,22 +32,21 @@ matrix:
         - $HOME/.luarocks/bin/luacheck builtin
         - $HOME/.luarocks/bin/busted builtin
 
-    - env: CLANG_TIDY=clang-tidy-7
+    - env: CLANG_TIDY=clang-tidy-8
       compiler: clang
       os: linux
       script: ./util/travis/clangtidy.sh
       addons:
         apt:
-          packages: ['clang-7', 'clang++-7', 'clang-tools-7', 'clang-tidy-7']
-          sources: &sources
-            - ubuntu-toolchain-r-test
-            - llvm-toolchain-trusty-7
+          packages: ['clang-tidy-8']
 
-    - env: PLATFORM=Win32
+    - name: "MinGW cross-compiler (32-bit)"
+      env: PLATFORM=Win32
       compiler: gcc
       os: linux
 
-    - env: PLATFORM=Win64
+    - name: "MinGW cross-compiler (64-bit)"
+      env: PLATFORM=Win64
       compiler: gcc
       os: linux
 
@@ -66,8 +61,6 @@ matrix:
       addons:
         apt:
           packages: ['gcc-6', 'g++-6']
-          sources: &sources
-            - ubuntu-toolchain-r-test
 
     - env: PLATFORM=Unix COMPILER=gcc-8
       compiler: gcc
@@ -75,44 +68,31 @@ matrix:
       addons:
         apt:
           packages: ['gcc-8', 'g++-8']
-          sources: &sources
-            - ubuntu-toolchain-r-test
 
-    - env: PLATFORM=Unix COMPILER=clang-3.6
+    - env: PLATFORM=Unix COMPILER=clang-3.9
       compiler: clang
       os: linux
       addons:
         apt:
-          packages: ['clang-3.6', 'clang++-3.6']
-          sources: &sources
-            - llvm-toolchain-trusty-3.6
+          packages: ['clang-3.9']
 
-    - env: PLATFORM=Unix COMPILER=clang-7
+    - env: PLATFORM=Unix COMPILER=clang-9
       compiler: clang
       os: linux
       addons:
         apt:
-          packages: ['clang-7', 'clang++-7']
-          sources: &sources
-            - ubuntu-toolchain-r-test
-            - llvm-toolchain-trusty-7
+          packages: ['clang-9']
 
-    - env: PLATFORM=Unix COMPILER=clang-7 FREETYPE=0
+    - env: PLATFORM=Unix COMPILER=clang-9 FREETYPE=0
       compiler: clang
       os: linux
       addons:
         apt:
-          packages: ['clang-7', 'clang++-7']
-          sources: &sources
-            - ubuntu-toolchain-r-test
-            - llvm-toolchain-trusty-7
+          packages: ['clang-9']
 
-    - env: PLATFORM=Unix COMPILER=clang-7 VALGRIND=1
+    - env: PLATFORM=Unix COMPILER=clang-9 VALGRIND=1
       compiler: clang
       os: linux
       addons:
         apt:
-          packages: ['valgrind', 'clang-7', 'clang++-7']
-          sources: &sources
-            - ubuntu-toolchain-r-test
-            - llvm-toolchain-trusty-7
+          packages: ['valgrind', 'clang-9']
index b4406866e01701daa7d36ffd847895f35376baed..092a46577a37eaa0f8e47e8cf3bfc67ae15a6196 100644 (file)
@@ -1,31 +1,28 @@
 #!/bin/bash -e
 
 set_linux_compiler_env() {
-       if [[ "${COMPILER}" == "gcc-5.1" ]]; then
-               export CC=gcc-5.1
-               export CXX=g++-5.1
-       elif [[ "${COMPILER}" == "gcc-6" ]]; then
+       if [[ "${COMPILER}" == "gcc-6" ]]; then
                export CC=gcc-6
                export CXX=g++-6
        elif [[ "${COMPILER}" == "gcc-8" ]]; then
                export CC=gcc-8
                export CXX=g++-8
-       elif [[ "${COMPILER}" == "clang-3.6" ]]; then
-               export CC=clang-3.6
-               export CXX=clang++-3.6
-       elif [[ "${COMPILER}" == "clang-7" ]]; then
-               export CC=clang-7
-               export CXX=clang++-7
+       elif [[ "${COMPILER}" == "clang-3.9" ]]; then
+               export CC=clang-3.9
+               export CXX=clang++-3.9
+       elif [[ "${COMPILER}" == "clang-9" ]]; then
+               export CC=clang-9
+               export CXX=clang++-9
        fi
 }
 
 # Linux build only
 install_linux_deps() {
        sudo apt-get update
-       sudo apt-get install libirrlicht-dev cmake libbz2-dev libpng12-dev \
+       sudo apt-get install libirrlicht-dev cmake libbz2-dev libpng-dev \
                libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev \
                libhiredis-dev libogg-dev libgmp-dev libvorbis-dev libopenal-dev \
-               gettext libpq-dev libleveldb-dev
+               gettext libpq-dev libpqtypes-dev libleveldb-dev
 }
 
 # Mac OSX build only