From c118993ad5b898e8fac96ae8ec583cc0cf8d4a77 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 26 Aug 2020 23:18:09 +0300 Subject: Travis: fix the clang-format job --- .travis.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b6ae1a1..fc54994 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,15 +33,20 @@ script: >- jobs: fast_finish: true + # Clear irrelevant matrix build settings: + _clear: &clear + language: shell + addons: {apt: {packages: []}} + before_script: [] + script: [] + include: - - name: Run clang-format + - <<: *clear + name: Run clang-format if: branch = master addons: apt: update: true packages: - clang-format-9 - sources: - - sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main' - key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' script: ./cmake/tools/clang-format.py --clang-format clang-format-9 -- cgit v1.2.3