未验证 提交 fd1f7af5 编写于 作者: T Tao Luo 提交者: GitHub

Merge pull request #552 from lcy-seso/fix_clang_format_version

use clang_format having the same version with the Paddle main repo.
#!/usr/bin/env bash
set -e
readonly VERSION="3.9"
readonly VERSION="3.8"
version=$(clang-format -version)
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册