openstreetmap-tile-server/.travis.yml

29 lines
900 B
YAML
Raw Normal View History

2019-12-21 21:42:40 +00:00
os: linux
language: minimal
2019-12-21 20:57:57 +00:00
services:
- docker
2019-12-27 13:58:56 +00:00
# DOCKER_USERNAME/DOCKER_PASSWORD have been configured in Travis CI
# env:
2019-12-21 20:57:57 +00:00
before_install:
- echo "Before install"
before_script:
2022-04-09 14:20:29 +00:00
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
2019-12-27 13:58:56 +00:00
- docker pull overv/openstreetmap-tile-server || true
2019-12-21 20:57:57 +00:00
script:
2019-12-27 13:58:56 +00:00
- docker build --pull --cache-from overv/openstreetmap-tile-server --tag overv/openstreetmap-tile-server .
- docker volume create osm-data
- docker run --rm -v osm-data:/data/database/ overv/openstreetmap-tile-server import
- docker run --rm -v osm-data:/data/database/ -p 8080:80 -d overv/openstreetmap-tile-server run
- sleep 30
2019-12-27 13:58:56 +00:00
- make DOCKER_IMAGE=overv/openstreetmap-tile-server stop
2019-12-21 20:57:57 +00:00
after_script:
- docker images
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" ]];
then
2019-12-23 21:25:09 +00:00
docker images ;
2019-12-27 13:58:56 +00:00
docker push overv/openstreetmap-tile-server ;
2022-04-09 14:38:41 +00:00
fi
2019-12-21 20:57:57 +00:00
notifications:
email: true