Skip to content

Commit

Permalink
use clang_format having the same version with the Paddle main repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcy-seso committed Dec 19, 2017
1 parent b236139 commit 119e156
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .clang_format.hook
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

readonly VERSION="3.9"
readonly VERSION="3.8"

version=$(clang-format -version)

Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 119e156

Please sign in to comment.