From 7c0022964bd845afde027cf09ee0d963494012c1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 13 Jan 2020 08:32:33 +0300 Subject: Travis: only run clang-format on master --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 998d433..d79300c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,8 +25,6 @@ env: - configuration=Release platform=x64 before_script: - - ./cmake/tools/clang-format/clang-format.sh --clang-format clang-format-9 --diff - - >- ./cmake/boost/build/ci/travis.py --link static @@ -49,6 +47,13 @@ script: jobs: fast_finish: true include: + - name: Run clang-format + if: branch = master + # Clear before_script: + before_script: + - true + script: + - ./cmake/tools/clang-format/clang-format.sh --clang-format clang-format-9 --diff - name: Build Docker images language: minimal # Don't install the unnecessary dependencies: -- cgit v1.2.3