Skip to content

Commit

Permalink
Check multiple Mapnik and Carto versions
Browse files Browse the repository at this point in the history
Because checking an individual Mapnik version is fairly quick, we
can check more than one on each run.
  • Loading branch information
pnorman authored and sommerluk committed Dec 17, 2016
1 parent 1a0fe9b commit 7baf5fb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ language: node_js
sudo: false
node_js:
- "0.10"
env:
- CARTO=0.16.0 MAPNIK='3.0.0 3.0.12'
- CARTO=0.16.3 MAPNIK='3.0.0 3.0.12'
install:
- npm install carto@0.16.0
- npm install carto@$CARTO
- mkdir -p data/world_boundaries data/simplified-land-polygons-complete-3857 data/ne_110m_admin_0_boundary_lines_land data/ne_10m_populated_places data/land-polygons-split-3857
- touch data/world_boundaries/builtup_area.shp data/simplified-land-polygons-complete-3857/simplified_land_polygons.shp data/ne_110m_admin_0_boundary_lines_land/ne_110m_admin_0_boundary_lines_land.shp data/ne_10m_populated_places/ne_10m_populated_places_fixed.shp data/land-polygons-split-3857/land_polygons.shp
script:
- set -o pipefail && ./node_modules/carto/bin/carto project.mml | xmllint - | wc -l
# We're using pipes in the checks, so fail if any part fails
- set -o pipefail
# 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

0 comments on commit 7baf5fb

Please sign in to comment.