#!/usr/bin/env bash # Start (or with --down, stop and wipe) the e2e FreshRSS 1.30.4 environment. set -euo pipefail cd "$(dirname "$0")" compose=(docker compose -f docker-compose.yml) if [[ "${1:-}" == "--down" ]]; then "${compose[@]}" down -v exit 0 fi "${compose[@]}" up -d --wait run() { "${compose[@]}" exec -T --user www-data freshrss "$@"; } ext=/var/www/FreshRSS/extensions/freshrss-read-more run cli/import-for-user.php --user test --filename "$ext/tests/e2e/fixtures/subscriptions.opml" || true run cli/actualize-user.php --user test run php "$ext/tests/e2e/reset.php" 250 echo "FreshRSS e2e ready on http://localhost:8080"