From be1b70e64e719bb1f1af5ea414e9e1aaf8f0a89b Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Mon, 12 Dec 2016 15:08:55 +0800 Subject: [PATCH] Tuning travis --- paddle/cuda/src/hl_cuda_device.cc | 2 +- paddle/scripts/travis/precommit.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/cuda/src/hl_cuda_device.cc b/paddle/cuda/src/hl_cuda_device.cc index d1814482929..b0bba73594d 100644 --- a/paddle/cuda/src/hl_cuda_device.cc +++ b/paddle/cuda/src/hl_cuda_device.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "hl_cuda.h" #include #include #include #include #include #include -#include "hl_cuda.h" #include "hl_cuda.ph" #include "hl_dso_loader.h" #include "hl_thread.ph" diff --git a/paddle/scripts/travis/precommit.sh b/paddle/scripts/travis/precommit.sh index 3e70bc118ef..48d2f437a14 100755 --- a/paddle/scripts/travis/precommit.sh +++ b/paddle/scripts/travis/precommit.sh @@ -2,5 +2,7 @@ set -e source common.sh cd .. +export PATH=/usr/bin:$PATH pre-commit install +clang-format --version pre-commit run -a -- GitLab