Skip to content

Commit

Permalink
check for deterministic output in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Jan 15, 2024
1 parent 90d2872 commit 995ec89
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/test-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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::"

0 comments on commit 995ec89

Please sign in to comment.