diff --git a/scripts/auto_prod.sh b/scripts/auto_prod.sh index 3d28a65..94a1b31 100644 --- a/scripts/auto_prod.sh +++ b/scripts/auto_prod.sh @@ -28,6 +28,10 @@ env_before=$(sha256sum "$prod/.env" | cut -d' ' -f1) # Fresh full gate for this exact main push; the dev approval can be days old. cp "$prod/$index" "$checkout/$index" sqlite3 "$prod/smeta-web.db" ".backup $checkout/smeta-web.db" +mkdir -p "$checkout/tests/fixtures/tsn_local" +for pdf in tsn3-1.pdf index222.pdf; do + cp "$prod/tests/fixtures/tsn_local/$pdf" "$checkout/tests/fixtures/tsn_local/$pdf" +done APP_DIR="$checkout" COPY_DIR=/home/mcp-user/smeta-prod-auto-predeploy \ bash "$checkout/scripts/predeploy-tests.sh" > "$log" 2>&1 || { tail -30 "$log" >&2 diff --git a/scripts/auto_stage.sh b/scripts/auto_stage.sh index d721319..6cadcd5 100644 --- a/scripts/auto_stage.sh +++ b/scripts/auto_stage.sh @@ -37,6 +37,10 @@ fi git -C "$stage" merge --ff-only "$sha" cp "$prod/$index" "$stage/$index" sqlite3 "$prod/smeta-web.db" ".backup $stage/smeta-web.db" +mkdir -p "$stage/tests/fixtures/tsn_local" +for pdf in tsn3-1.pdf index222.pdf; do + cp "$prod/tests/fixtures/tsn_local/$pdf" "$stage/tests/fixtures/tsn_local/$pdf" +done test "$(stat -c %i "$prod/smeta-web.db")" != "$(stat -c %i "$stage/smeta-web.db")" test "$(readlink -f "$prod/smeta-web.db")" != "$(readlink -f "$stage/smeta-web.db")" python3 "$stage/scripts/shadow/preflight.py" "$stage/.env"