post-upload.sh 454 B

123456789101112131415
  1. #!/bin/bash -ex
  2. # Copy documentation
  3. cp license.txt "$DIR_NAME"
  4. cp README.md "$DIR_NAME"
  5. if [[ -z "${NO_SOURCE_PACK}" ]]; then
  6. tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md license.txt
  7. cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME"
  8. fi
  9. tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME"
  10. # move the compiled archive into the artifacts directory to be uploaded by travis releases
  11. mv "$ARCHIVE_NAME" "${ARTIFACTS_DIR}/"