run_ci_dev.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin bash
  2. rm -rf /usr/local/python2.7.15/bin/python
  3. rm -rf /usr/local/python2.7.15/bin/pip
  4. ln -s /usr/local/bin/python3.7 /usr/local/python2.7.15/bin/python
  5. ln -s /usr/local/bin/pip3.7 /usr/local/python2.7.15/bin/pip
  6. export PYTHONPATH=`pwd`
  7. python -m pip install --upgrade pip --ignore-installed
  8. # python -m pip install --upgrade numpy --ignore-installed
  9. python -m pip uninstall paddlepaddle-gpu -y
  10. if [[ ${branch} == 'develop' ]];then
  11. echo "checkout develop !"
  12. python -m pip install ${paddle_dev} --no-cache-dir
  13. else
  14. echo "checkout release !"
  15. python -m pip install ${paddle_release} --no-cache-dir
  16. fi
  17. echo -e '*****************paddle_version*****'
  18. python -c 'import paddle;print(paddle.version.commit)'
  19. echo -e '*****************paddleseg_version****'
  20. git rev-parse HEAD
  21. pip install -r requirements.txt --ignore-installed
  22. pip install -e .
  23. pip install https://versaweb.dl.sourceforge.net/project/gdal-wheels-for-linux/GDAL-3.4.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
  24. unset http_proxy https_proxy
  25. set -e
  26. cd tests/
  27. bash run_fast_tests.sh
  28. cd ..
  29. for config in $(ls test_tipc/configs/*/*/train_infer_python.txt); do
  30. bash test_tipc/prepare.sh ${config} lite_train_lite_infer
  31. bash test_tipc/test_train_inference_python.sh ${config} lite_train_lite_infer
  32. done