Run code style linter first (#7213)
authorrubenwardy <rw@rubenwardy.com>
Thu, 5 Jul 2018 21:04:39 +0000 (22:04 +0100)
committerParamat <paramat@users.noreply.github.com>
Thu, 5 Jul 2018 21:04:39 +0000 (22:04 +0100)
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

.travis.yml

index c506d21e7171b22ad7714d7f35b3f3c32d737d38..2409a51cd5c661c460b167f5629666bf11fc3875 100644 (file)
@@ -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
-
-
-