From 64e58eb32400f3bd1cd1a2d6fb272a2c9a747799 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Mon, 27 Jul 2020 15:22:40 +0800 Subject: [PATCH] Add cache (#2304) * add cache * fix dir * change * change * change * change * fix dir --- scripts/check_api_cn.sh | 5 ++--- scripts/start.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/check_api_cn.sh b/scripts/check_api_cn.sh index 9725e762b..a986d3946 100644 --- a/scripts/check_api_cn.sh +++ b/scripts/check_api_cn.sh @@ -7,9 +7,8 @@ if [ "$night" == "develop" ];then wget -q https://paddle-wheel.bj.bcebos.com/0.0.0-gpu-cuda9-cudnn7-mkl/paddlepaddle_gpu-0.0.0-cp27-cp27mu-linux_x86_64.whl pip install -U paddlepaddle_gpu-0.0.0-cp27-cp27mu-linux_x86_64.whl else - git clone https://github.com/PaddlePaddle/Paddle.git - mkdir Paddle/build && cd Paddle/build - cmake .. -DWITH_GPU=ON -DWITH_COVERAGE=OFF -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release + cd Paddle/build + cmake .. -DWITH_GPU=ON -DWITH_COVERAGE=OFF -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release make -j`nproc` pip install -U python/dist/paddlepaddle_gpu-0.0.0-cp27-cp27mu-linux_x86_64.whl fi diff --git a/scripts/start.sh b/scripts/start.sh index 286663399..fff346a3e 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -7,7 +7,7 @@ if [ $? -ne 0 ];then echo "code format error" exit 1 fi -/bin/bash ${DIR_PATH}/scripts/check_api_cn.sh +/bin/bash -x ${DIR_PATH}/scripts/check_api_cn.sh if [ $? -ne 0 ];then exit 1 fi -- GitLab