From 119e1566b3d4c0950204b8b4568ed5cedc71a848 Mon Sep 17 00:00:00 2001 From: ying Date: Tue, 19 Dec 2017 10:30:47 +0800 Subject: [PATCH] use clang_format having the same version with the Paddle main repo. --- .clang_format.hook | 2 +- .travis.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.clang_format.hook b/.clang_format.hook index 4cbc972bbd..40d70f56cf 100755 --- a/.clang_format.hook +++ b/.clang_format.hook @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e -readonly VERSION="3.9" +readonly VERSION="3.8" version=$(clang-format -version) diff --git a/.travis.yml b/.travis.yml index f9fe913bee..7fa098a7c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,10 +16,10 @@ addons: - python - python-pip - python2.7-dev - - clang-format-3.9 + - clang-format-3.8 ssh_known_hosts: 52.76.173.135 before_install: - - if [[ "$JOB" == "PRE_COMMIT" ]]; then sudo ln -s /usr/bin/clang-format-3.9 /usr/bin/clang-format; fi + - if [[ "$JOB" == "PRE_COMMIT" ]]; then sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format; fi - sudo pip install -U virtualenv pre-commit pip - docker pull paddlepaddle/paddle:latest