directory cleanup for tests
Sonarqube Scanner / Prepare environment (push) Successful in 11s
Sonarqube Scanner / Build and test (push) Successful in 29s
Sonarqube Scanner / SonarQube analysis (push) Successful in 1m25s
Sonarqube Scanner / Deploy to Server (push) Successful in 7s

This commit is contained in:
Florian Zumpe
2026-10-04 08:12:08 +02:00
parent 4e7b519275
commit 497b7b8050
6 changed files with 120 additions and 48 deletions
+8 -4
View File
@@ -2,10 +2,14 @@
set -euo pipefail
BASE_URL="${1:-https://wegwichtel.de/api}"
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(cd -- "$SCRIPT_DIR/.." && pwd)"
GPX_FILE="$ROOT_DIR/examples/presentation-route.gpx"
JSON_FILE="$ROOT_DIR/examples/presentation-route.json"
GPX_FILE="${2:-}"
JSON_FILE="${3:-}"
if [[ ! -f "$GPX_FILE" || ! -f "$JSON_FILE" ]]; then
echo "Aufruf: $0 <API-Adresse> <GPX-Datei> <JSON-Datei>" >&2
echo "Gib vorhandene Dateien an. Die Beispielstrecken werden nicht mehr mitgeliefert." >&2
exit 2
fi
for command in curl python3; do
command -v "$command" >/dev/null 2>&1 || {