From 995ec89d9b5f1d62d9d8bd4671d5580469897b26 Mon Sep 17 00:00:00 2001 From: Mike Barry Date: Mon, 15 Jan 2024 14:16:54 -0500 Subject: [PATCH] check for deterministic output in CI --- scripts/test-release.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/test-release.sh b/scripts/test-release.sh index 61b08d72..c970c9ca 100755 --- a/scripts/test-release.sh +++ b/scripts/test-release.sh @@ -6,14 +6,17 @@ version="${1:-$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) echo "Test java build" echo "::group::OpenMapTiles monaco (java)" -rm -f data/out.mbtiles -java -jar target/*with-deps.jar --download --area=monaco --mbtiles=data/out.mbtiles -./scripts/check-monaco.sh data/out.mbtiles +java -jar target/*with-deps.jar --download --area=monaco --mbtiles=data/java.mbtiles +./scripts/check-monaco.sh data/java.mbtiles echo "::endgroup::" echo "::endgroup::" echo "::group::OpenMapTiles monaco (docker)" -rm -f data/out.mbtiles -docker run -v "$(pwd)/data":/data openmaptiles/planetiler-openmaptiles:"${version}" --area=monaco --mbtiles=data/out.mbtiles -./scripts/check-monaco.sh data/out.mbtiles +rm -f data/docker.mbtiles +docker run -v "$(pwd)/data":/data openmaptiles/planetiler-openmaptiles:"${version}" --area=monaco --mbtiles=data/docker.mbtiles +./scripts/check-monaco.sh data/docker.mbtiles echo "::endgroup::" + +echo "::group::Compare" +java -cp target/*with-deps.jar com.onthegomap.planetiler.util.CompareArchives data/java.mbtiles data/docker.mbtiles +echo "::endgroup::" \ No newline at end of file