run_ci_dev.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. git clone https://github.com/LDOUBLEV/AutoLog
  25. cd AutoLog
  26. pip install -r requirements.txt
  27. python setup.py bdist_wheel
  28. pip install ./dist/auto_log*.whl
  29. cd ..
  30. unset http_proxy https_proxy
  31. set -e
  32. cd tests/
  33. bash run_fast_tests.sh