[Test] Add CI Script (#25)
parent
68443d06cd
commit
69b5398972
1 changed files with 34 additions and 0 deletions
@ -0,0 +1,34 @@ |
||||
#!/bin bash |
||||
|
||||
rm -rf /usr/local/python2.7.15/bin/python |
||||
rm -rf /usr/local/python2.7.15/bin/pip |
||||
ln -s /usr/local/bin/python3.7 /usr/local/python2.7.15/bin/python |
||||
ln -s /usr/local/bin/pip3.7 /usr/local/python2.7.15/bin/pip |
||||
export PYTHONPATH=`pwd` |
||||
|
||||
python -m pip install --upgrade pip --ignore-installed |
||||
# python -m pip install --upgrade numpy --ignore-installed |
||||
python -m pip uninstall paddlepaddle-gpu -y |
||||
if [[ ${branch} == 'develop' ]];then |
||||
echo "checkout develop !" |
||||
python -m pip install ${paddle_dev} --no-cache-dir |
||||
else |
||||
echo "checkout release !" |
||||
python -m pip install ${paddle_release} --no-cache-dir |
||||
fi |
||||
|
||||
echo -e '*****************paddle_version*****' |
||||
python -c 'import paddle;print(paddle.version.commit)' |
||||
echo -e '*****************paddleseg_version****' |
||||
git rev-parse HEAD |
||||
|
||||
pip install -r requirements.txt --ignore-installed |
||||
pip install -e . |
||||
|
||||
cd tests/ |
||||
bash run_fast_tests.sh |
||||
|
||||
cd .. |
||||
for config in $(ls test_tipc/configs/*/*/train_infer_python.txt); do |
||||
bash test_tipc/test_train_inference_python.sh ${config} lite_train_lite_infer |
||||
done |
Loading…
Reference in new issue