run_ci_dev.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 uninstall paddlepaddle-gpu -y
  9. if [[ ${branch} == 'develop' ]];then
  10. echo "checkout develop !"
  11. python -m pip install --user ${paddle_dev} --no-cache-dir
  12. else
  13. echo "checkout release !"
  14. python -m pip install --user ${paddle_release} --no-cache-dir
  15. fi
  16. echo -e '*****************paddle_version*****'
  17. python -c 'import paddle;print(paddle.version.commit)'
  18. echo -e '*****************paddlers_version****'
  19. git rev-parse HEAD
  20. python -m pip install --user -r requirements.txt
  21. python -m pip install --user -e .
  22. python -m pip install --user 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
  23. git clone https://github.com/LDOUBLEV/AutoLog
  24. cd AutoLog
  25. python -m pip install --user -r requirements.txt
  26. python setup.py bdist_wheel
  27. python -m pip install --user ./dist/auto_log*.whl
  28. cd ..
  29. python -m pip install --user spyndex protobuf==3.19.0 colorama
  30. unset http_proxy https_proxy
  31. set -e
  32. cd tests/
  33. bash run_fast_tests.sh