diff --git a/scripts/check_api_cn.sh b/scripts/check_api_cn.sh index 9725e762b242c9865e65600ca1d0e5c5fffdcce5..a986d39469024293436395fa681e239a680c79b1 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 2866633991d8a7d7f68d2079a835fd09e7a429f6..fff346a3e679bd9145c164c7b2c4aaf88c7b58a4 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