osm2vectortiles/.travis.yml

37 wiersze
1.4 KiB
YAML

sudo: required
language: bash
services:
- docker
before_install:
- curl -L https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- wget -nc -P "$HOME/cache" "https://s3.amazonaws.com/metro-extracts.mapzen.com/zurich_switzerland.osm.pbf"
- mkdir -p "$TRAVIS_BUILD_DIR/import" && cp "$HOME/cache/zurich_switzerland.osm.pbf" "$TRAVIS_BUILD_DIR/import"
- docker-compose build
- docker build -t osm2vectortiles/postgis src/postgis
- docker build -t osm2vectortiles/export src/export
- docker build -t osm2vectortiles/import-osm src/import-osm
- docker build -t osm2vectortiles/import-external src/import-external
- docker build -t osm2vectortiles/import-sql src/import-sql
- docker build -t osm2vectortiles/update-scaleranks src/update-scaleranks
- docker build -t osm2vectortiles/serve src/serve
script:
- docker-compose up -d postgis
- sleep 5
- docker-compose up -d pgbouncer
- sleep 5
- docker-compose run import-osm
- docker-compose run import-natural-earth
- docker-compose run import-water
- docker-compose run import-labels
- docker-compose run import-sql
- docker-compose run update-scaleranks
- docker-compose run export
- docker-compose up -d serve
- sleep 5
- curl "http://localhost:8080/index.json"
cache:
directories:
- $HOME/cache