forked from maptiler/openmaptiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from ACMEAtronOmatic/upstream-changes
Upstream changes
- Loading branch information
Showing
111 changed files
with
2,716 additions
and
1,204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Workflow to run basic integrity checks on OMT`s new Pull Requests and commits pushed into OMT repo | ||
|
||
name: OpenMapTiles Integrity CI | ||
|
||
on: | ||
push: | ||
branches: [ master, master-tools ] | ||
pull_request: | ||
|
||
jobs: | ||
|
||
integrity_test: | ||
name: Run integrity test | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout the changes | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run quickstart for a small area | ||
env: | ||
area: monaco | ||
QUIET: 1 | ||
run: | | ||
echo MIN_ZOOM=0 >> .env | ||
echo MAX_ZOOM=14 >> .env | ||
./quickstart.sh $area | ||
- name: Save quickstart.log | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: quickstart.log | ||
path: quickstart.log | ||
|
||
- name: Test etldoc images | ||
run: | | ||
export TEST_MODE=yes | ||
make generate-devdoc | ||
- name: Run quickstart and update in DIFF mode | ||
env: | ||
area: europe/monaco | ||
QUIET: 1 | ||
run: | | ||
echo MIN_ZOOM=0 >> .env | ||
echo MAX_ZOOM=14 >> .env | ||
echo DIFF_MODE=true >> .env | ||
# Cleanup | ||
rm -fr data build cache | ||
# Create data/$area.repl.json | ||
make download-geofabrik area=$area | ||
# Download 2+ month old data | ||
export old_date=$(date --date="$(date +%Y-%m-15) -2 month" +'%y%m01') | ||
echo Downloading $old_date extract of $area | ||
docker-compose run --rm --user=$(id -u):$(id -g) openmaptiles-tools sh -c "wget -O data/$area.osm.pbf http://download.geofabrik.de/$area-$old_date.osm.pbf" | ||
# Initial import and tile generation | ||
./quickstart.sh $area | ||
sleep 2 | ||
echo Downloading updates | ||
# Loop to recover from potential "ERROR 429: Too Many Requests" | ||
docker-compose run --rm --user=$(id -u):$(id -g) openmaptiles-tools sh -c " | ||
while ! osmupdate --keep-tempfiles --base-url=$(sed -n 's/ *\"replication_url\": //p' data/$area.repl.json) data/$area.osm.pbf data/changes.osc.gz ; do | ||
sleep 2; | ||
echo Sleeping...; | ||
sleep 630; | ||
done" | ||
echo Downloading updates completed | ||
echo Importing updates | ||
make import-diff | ||
echo Generating new tiles | ||
make generate-tiles-pg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Workflow to run unit tests on OMT`s new Pull Requests and commits pushed into OMT repo | ||
|
||
name: OpenMapTiles SQL Test CI | ||
|
||
on: | ||
push: | ||
branches: [ master, master-tools ] | ||
pull_request: | ||
|
||
jobs: | ||
|
||
unit_tests: | ||
name: Run unit test | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout the changes | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run unit tests | ||
run: | | ||
make clean && make test-sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.