From 2b91d7c4c9b60187c972216eae9efa977baafafd Mon Sep 17 00:00:00 2001 From: Lukas Sommer Date: Sun, 24 Jul 2022 14:07:38 +0000 Subject: [PATCH] Cleanup --- .travis.yml | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a3099b1084..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,47 +0,0 @@ -language: node_js -dist: bionic -sudo: false -node_js: - - "10" -services: - - postgresql -addons: - postgresql: "9.5" - apt: - packages: - - lua5.1 - - libxml2-utils - - python3-pip - - python3-setuptools - - python-yaml - - postgresql-9.5-postgis-2.4 - - osm2pgsql -env: - - CARTO=1.2.0 MAPNIK='3.0.22' -install: - - npm install carto@$CARTO - - pip3 install --user colormath - - mkdir -p data/simplified-water-polygons-split-3857 data/ne_110m_admin_0_boundary_lines_land data/water-polygons-split-3857 - - touch data/simplified-water-polygons-split-3857/simplified_water_polygons.shp data/ne_110m_admin_0_boundary_lines_land/ne_110m_admin_0_boundary_lines_land.shp data/water-polygons-split-3857/water_polygons.shp - - createdb -w -E utf8 -U postgres gis && psql -Xq -d gis -U postgres -w -c "CREATE EXTENSION postgis; CREATE EXTENSION hstore;" -script: - # We're using pipes in the checks, so fail if any part fails - - set -o pipefail - # Check all tye YAML files are valid YAML - - find . -not \( -path ./node_modules -prune \) \( -type f -name '*.yaml' -o -name '*.yml' -o -name '*.mml' \) - -exec python -c "from yaml import safe_load; safe_load(file('{}'))" \; - # Validate the MML against multiple Mapnik versions, and report its lines for debugging purposes - - for m in $MAPNIK; do ./node_modules/carto/bin/carto -a $m project.mml | xmllint - | wc -l; done - # Validate that the SVGs are valid XML - - find symbols/ -name '*.svg' | xargs xmllint --noout - # Check the Lua transforms - - lua scripts/lua/test.lua - # Check the indexes and road colours files are up to date - - diff -qu <(scripts/indexes.py) indexes.sql - - diff -qu <(scripts/generate_road_colours.py) style/road-colors-generated.mss - # Create the PostgreSQL tables - - osm2pgsql -G --hstore --style openstreetmap-carto.style --tag-transform-script openstreetmap-carto.lua -U postgres -d gis -r xml <(echo '') - # Apply the custom indexes - - psql -1Xq -v ON_ERROR_STOP=1 -d gis -f indexes.sql - # Test for classes in project.mml (not supported in vector tiles) - - '! grep "class:" project.mml > /dev/null'