test=develop, fix mac ci will not uninstall dependency files when error occurs (#17688)

dependabot/pip/python/requests-2.20.0
Jiabin Yang 6 years ago committed by lujun
parent 04b6c29ee0
commit 7a401da52f

@ -390,6 +390,19 @@ EOF
ctest --output-on-failure -j $2
# make install should also be test when unittest
make install -j 8
set +ex
if [ "$1" == "cp27-cp27m" ]; then
pip uninstall -y paddlepaddle
elif [ "$1" == "cp35-cp35m" ]; then
pip3.5 uninstall -y paddlepaddle
elif [ "$1" == "cp36-cp36m" ]; then
pip3.6 uninstall -y paddlepaddle
elif [ "$1" == "cp37-cp37m" ]; then
pip3.7 uninstall -y paddlepaddle
fi
set -ex
if [ "$1" == "cp27-cp27m" ]; then
set -e
pip install --user ${INSTALL_PREFIX:-/paddle/build}/opt/paddle/share/wheels/*.whl
@ -403,16 +416,6 @@ EOF
fi
paddle version
if [ "$1" == "cp27-cp27m" ]; then
pip uninstall -y paddlepaddle
elif [ "$1" == "cp35-cp35m" ]; then
pip3.5 uninstall -y paddlepaddle
elif [ "$1" == "cp36-cp36m" ]; then
pip3.6 uninstall -y paddlepaddle
elif [ "$1" == "cp37-cp37m" ]; then
pip3.7 uninstall -y paddlepaddle
fi
fi
}

Loading…
Cancel
Save