run_ci_dev.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 ${paddle_dev} --no-cache-dir
  12. else
  13. echo "checkout release !"
  14. python -m pip install ${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. pip install -r requirements.txt --ignore-installed
  21. pip install -e .
  22. 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
  23. git clone https://github.com/LDOUBLEV/AutoLog
  24. cd AutoLog
  25. pip install -r requirements.txt
  26. python setup.py bdist_wheel
  27. pip install ./dist/auto_log*.whl
  28. cd ..
  29. pip install spyndex protobuf==3.19.0 colorama
  30. unset http_proxy https_proxy
  31. set -e
  32. cd tests/
  33. bash run_fast_tests.sh