aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-07-05 22:04:39 +0100
committerParamat <paramat@users.noreply.github.com>2018-07-05 22:04:39 +0100
commit738c8b102ba02b6d243091759f2529614fc3c32b (patch)
treeac6fd28c55d02bf23d942c2a36a66cc9c47eff77
parent03edcafdda550e55e29bf48a682097028ae01306 (diff)
downloadminetest-738c8b102ba02b6d243091759f2529614fc3c32b.tar.gz
minetest-738c8b102ba02b6d243091759f2529614fc3c32b.tar.bz2
minetest-738c8b102ba02b6d243091759f2529614fc3c32b.zip
Run code style linter first (#7213)
The code style linter is the most likely to fail, so should be placed at the top of the list so it's started first. Note that a failed job doesn't stop others from running
-rw-r--r--.travis.yml41
1 files changed, 20 insertions, 21 deletions
diff --git a/.travis.yml b/.travis.yml
index c506d21e7..2409a51cd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,6 +9,26 @@ notifications:
matrix:
fast_finish: true
include:
+
+ - env: LINT=1
+ compiler: clang
+ os: linux
+ addons:
+ apt:
+ packages: ['clang-format-5.0']
+ sources: &sources
+ - llvm-toolchain-trusty-5.0
+
+ - env: CLANG_TIDY=1
+ compiler: clang
+ os: linux
+ script: ./util/travis/clangtidy.sh
+ addons:
+ apt:
+ packages: ['clang-tidy-5.0']
+ sources: &sources
+ - llvm-toolchain-trusty-5.0
+
- env: PLATFORM=Win32
compiler: gcc
os: linux
@@ -87,24 +107,3 @@ matrix:
packages: ['valgrind', 'clang-5.0', 'clang++-5.0']
sources: &sources
- llvm-toolchain-trusty-5.0
-
- - env: LINT=1
- compiler: clang
- os: linux
- addons:
- apt:
- packages: ['clang-format-5.0']
- sources: &sources
- - llvm-toolchain-trusty-5.0
- - env: CLANG_TIDY=1
- compiler: clang
- os: linux
- script: ./util/travis/clangtidy.sh
- addons:
- apt:
- packages: ['clang-tidy-5.0']
- sources: &sources
- - llvm-toolchain-trusty-5.0
-
-
-