pages.sh 817 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env bash
  2. export LOGFILE=pages.log
  3. source ./tools/ci/scripts/init.sh
  4. tools/ci/scripts/retry.sh git clone https://gitlab.com/4144/pagesindexgen.git pagesindexgen
  5. mkdir -p ../public/docs
  6. mkdir -p ../public/stats
  7. mkdir -p ../public/stats2
  8. mkdir -p ../public/gcov
  9. mkdir -p ../public/version
  10. cp ./logs/gcc-?.* ../public/gcov || exit 1
  11. cp ./logs/gcc-?_SDL2.* ../public/gcov || exit 1
  12. date >../public/version/commit.txt
  13. echo "Url: $CI_PROJECT_URL" >>../public/version/commit.txt
  14. echo "Ref name: $CI_BUILD_REF_NAME" >>../public/version/commit.txt
  15. echo "Ref: $CI_BUILD_REF" >>../public/version/commit.txt
  16. cd pagesindexgen
  17. ./pagesindexgen.py ../../public
  18. check_error $?
  19. cd ..
  20. cp -r ./doxygen/html/* ../public/docs || exit 1
  21. cp -r ./stats/* ../public/stats || exit 1
  22. cp -r ./stats2/* ../public/stats2 || exit 1