diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-13 08:54:22 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-13 08:54:22 +0300 |
commit | d5338fe55343156ab6876ad711e0952a49c4bb37 (patch) | |
tree | 00a1c0e5b2e944d39a97f4771e9de1b7a2ceb375 | |
parent | clang-format all the code (diff) | |
download | math-server-d5338fe55343156ab6876ad711e0952a49c4bb37.tar.gz math-server-d5338fe55343156ab6876ad711e0952a49c4bb37.zip |
Travis: only install clang-format when needed
Diffstat (limited to '')
-rw-r--r-- | .travis.yml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index d79300c..797eb4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,14 +6,11 @@ addons: apt: update: true packages: - - clang-format-9 - cmake - g++-multilib sources: - sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main' key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc' - - sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main' - key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' env: global: @@ -49,6 +46,14 @@ jobs: include: - 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' # Clear before_script: before_script: - true |