run_ci_dev.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. # According to
  22. # https://stackoverflow.com/questions/74972995/opencv-aws-lambda-lib64-libz-so-1-version-zlib-1-2-9-not-found
  23. python -m pip install opencv-contrib-python==4.6.0.66
  24. python -m pip install --user -e .
  25. 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
  26. git clone https://github.com/LDOUBLEV/AutoLog
  27. cd AutoLog
  28. python -m pip install --user -r requirements.txt
  29. python setup.py bdist_wheel
  30. python -m pip install --user ./dist/auto_log*.whl
  31. cd ..
  32. python -m pip install --user spyndex protobuf==3.19.0 colorama
  33. unset http_proxy https_proxy
  34. set -e
  35. cd tests/
  36. bash run_fast_tests.sh