run-s3.sh 486 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. set -e
  3. # Determine if we should continue testing with S3 configuration.
  4. if [[ -z "${S3_BUCKET}" ]]; then
  5. echo "No S3 configuration is set. Skipping S3 tests!"
  6. exit 0
  7. fi
  8. source ../tools.sh
  9. # Install the node test framework
  10. npm install --silent >/dev/null
  11. install_ffmpeg
  12. start_owncast
  13. sleep 10
  14. # Update the server config to use S3 for storage.
  15. update_storage_config
  16. start_stream
  17. sleep 10
  18. # Re-run the HLS test against the external storage configuration.
  19. npm test