diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-13 08:32:33 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-13 08:42:08 +0300 |
commit | 7c0022964bd845afde027cf09ee0d963494012c1 (patch) | |
tree | 664fe423f1c5f7c8c600251b12a0fe42d213235f /.travis.yml | |
parent | Travis: run clang-format (diff) | |
download | math-server-7c0022964bd845afde027cf09ee0d963494012c1.tar.gz math-server-7c0022964bd845afde027cf09ee0d963494012c1.zip |
Travis: only run clang-format on master
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 9 |
1 files 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: |