mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-22 09:15:39 +01:00
Update our tooling (Clang 5 -> 7, GCC 7 -> 8)
This change permits to use up-to-date compilers, clang-tidy and clang-format It also refactor the tidy/format step to drop the binary selection from scripts and perform it directly in travis
This commit is contained in:
40
.travis.yml
40
.travis.yml
@@ -10,24 +10,26 @@ matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
|
||||
- env: LINT=1
|
||||
- env: CLANG_FORMAT=clang-format-7
|
||||
compiler: clang
|
||||
os: linux
|
||||
addons:
|
||||
apt:
|
||||
packages: ['clang-format-5.0']
|
||||
packages: ['clang-format-7']
|
||||
sources: &sources
|
||||
- llvm-toolchain-trusty-5.0
|
||||
- ubuntu-toolchain-r-test
|
||||
- llvm-toolchain-trusty-7
|
||||
|
||||
- env: CLANG_TIDY=1
|
||||
- env: CLANG_TIDY=clang-tidy-7
|
||||
compiler: clang
|
||||
os: linux
|
||||
script: ./util/travis/clangtidy.sh
|
||||
addons:
|
||||
apt:
|
||||
packages: ['clang-tidy-5.0']
|
||||
packages: ['clang-7', 'clang++-7', 'clang-tools-7', 'clang-tidy-7']
|
||||
sources: &sources
|
||||
- llvm-toolchain-trusty-5.0
|
||||
- ubuntu-toolchain-r-test
|
||||
- llvm-toolchain-trusty-7
|
||||
|
||||
- env: PLATFORM=Win32
|
||||
compiler: gcc
|
||||
@@ -63,12 +65,12 @@ matrix:
|
||||
sources: &sources
|
||||
- ubuntu-toolchain-r-test
|
||||
|
||||
- env: PLATFORM=Unix COMPILER=gcc-7
|
||||
- env: PLATFORM=Unix COMPILER=gcc-8
|
||||
compiler: gcc
|
||||
os: linux
|
||||
addons:
|
||||
apt:
|
||||
packages: ['gcc-7', 'g++-7']
|
||||
packages: ['gcc-8', 'g++-8']
|
||||
sources: &sources
|
||||
- ubuntu-toolchain-r-test
|
||||
|
||||
@@ -81,29 +83,33 @@ matrix:
|
||||
sources: &sources
|
||||
- llvm-toolchain-trusty-3.6
|
||||
|
||||
- env: PLATFORM=Unix COMPILER=clang-5.0
|
||||
- env: PLATFORM=Unix COMPILER=clang-7
|
||||
compiler: clang
|
||||
os: linux
|
||||
addons:
|
||||
apt:
|
||||
packages: ['clang-5.0', 'clang++-5.0']
|
||||
packages: ['clang-7', 'clang++-7']
|
||||
sources: &sources
|
||||
- llvm-toolchain-trusty-5.0
|
||||
- ubuntu-toolchain-r-test
|
||||
- llvm-toolchain-trusty-7
|
||||
|
||||
- env: PLATFORM=Unix COMPILER=clang-5.0 FREETYPE=0
|
||||
- env: PLATFORM=Unix COMPILER=clang-7 FREETYPE=0
|
||||
compiler: clang
|
||||
os: linux
|
||||
addons:
|
||||
apt:
|
||||
packages: ['clang-5.0', 'clang++-5.0']
|
||||
packages: ['clang-7', 'clang++-7']
|
||||
sources: &sources
|
||||
- llvm-toolchain-trusty-5.0
|
||||
- ubuntu-toolchain-r-test
|
||||
- llvm-toolchain-trusty-7
|
||||
|
||||
- env: PLATFORM=Unix COMPILER=clang-5.0 VALGRIND=1
|
||||
- env: PLATFORM=Unix COMPILER=clang-7 VALGRIND=1
|
||||
compiler: clang
|
||||
os: linux
|
||||
addons:
|
||||
apt:
|
||||
packages: ['valgrind', 'clang-5.0', 'clang++-5.0']
|
||||
packages: ['valgrind', 'clang-7', 'clang++-7']
|
||||
sources: &sources
|
||||
- llvm-toolchain-trusty-5.0
|
||||
- ubuntu-toolchain-r-test
|
||||
- llvm-toolchain-trusty-7
|
||||
|
||||
|
||||
Reference in New Issue
Block a user