-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
32 lines (32 loc) · 880 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
sudo: required
language: go
go:
- "1.9.x"
- "1.10.x"
- "1.11.x"
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.20.1
addons:
hosts:
- postgis
- geoserver
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- sudo apt-get install realpath -y
- sudo apt-get purge 'postgresql-*' -y
- sudo apt-get autoremove 'postgresql-*' -y
- sudo chmod +x ./scripts/*.sh
- sudo ./scripts/gdal.sh
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
- go get -u github.com/lukeroth/gdal
- docker-compose build
- docker-compose up -d
- docker ps
script:
- bash -c "./scripts/postgis.sh && ./scripts/entry.sh"