Make test output less verbose

pull/19/head
Lukas Martinelli 2015-09-23 15:51:44 +02:00
rodzic 91738c374b
commit 8b6a3a6da9
1 zmienionych plików z 10 dodań i 6 usunięć

Wyświetl plik

@ -2,23 +2,27 @@
set -o errexit
set -o pipefail
set -o nounset
set -o xtrace
cwd=$(pwd)
function serve_vector_tiles_sample() {
local container_name="vector-tiles-sample-test"
local repository_name="osm2vectortiles/tileserver"
local dir=`mktemp -d` && cd $dir
wget https://github.com/klokantech/vector-tiles-sample/archive/v1.0.tar.gz
tar -xzvf v1.0.tar.gz
echo "Download vector-tiles-sample"
wget --quiet https://github.com/klokantech/vector-tiles-sample/archive/v1.0.tar.gz
tar -xzf v1.0.tar.gz
cd vector-tiles-sample-1.0
rm -rf countries.tm2source
wget https://github.com/klokantech/vector-tiles-sample/releases/download/v1.0/countries.mbtiles
wget --quiet https://github.com/klokantech/vector-tiles-sample/releases/download/v1.0/countries.mbtiles
docker rm -f "$container_name"
docker run -d --name "$container_name" -p 80:80 -v $(pwd):/data osm2vectortiles/tileserver
docker rm -f "$container_name" > /dev/null
echo "Start $repository_name"
docker run -d --name "$container_name" -p 80:80 -v $(pwd):/data "$repository_name" > /dev/null
echo "Wait until $repository_name is up"
sleep 5 # make sure server is up
echo "Fetch TileJSON url"
curl "http://localhost:80/index.json"
docker stop "$container_name"