提交 5f0e5823 编写于 作者: 朔-望's avatar 朔-望

add clang-tidy support

上级 8b8d7e08
...@@ -7,7 +7,7 @@ os: ...@@ -7,7 +7,7 @@ os:
- linux - linux
env: env:
global: global:
# CMake - JOB=check_style
- CMAKE_URL=https://cmake.org/files/v3.11/cmake-3.11.1-Linux-x86_64.tar.gz - CMAKE_URL=https://cmake.org/files/v3.11/cmake-3.11.1-Linux-x86_64.tar.gz
addons: addons:
apt: apt:
...@@ -43,8 +43,9 @@ install: ...@@ -43,8 +43,9 @@ install:
script: script:
- | - |
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; } function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
echo "===============" echo "========allonli======="
- | - |
timeout 600 .travis/${JOB}.sh # 10min timeout timeout 600 .travis/${JOB}.sh # 10min timeout
RESULT=$?; if [ $RESULT -eq 0 ] || [ $RESULT -eq 142 ]; then true; else exit 1; fi; RESULT=$?; if [ $RESULT -eq 0 ] || [ $RESULT -eq 142 ]; then true; else exit 1; fi;
......
...@@ -11,7 +11,6 @@ cd `dirname $0` ...@@ -11,7 +11,6 @@ cd `dirname $0`
cd .. cd ..
export PATH=/usr/bin:$PATH export PATH=/usr/bin:$PATH
pre-commit install pre-commit install
#clang-format --version
if ! pre-commit run -a ; then if ! pre-commit run -a ; then
ls -lh ls -lh
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册