22 lines
697 B
YAML
22 lines
697 B
YAML
language: go
|
|
|
|
before_script:
|
|
- psql -U postgres -c 'create database travis;'
|
|
- psql -U postgres -d travis -c "create extension postgis"
|
|
- psql -U postgres -d travis -c "create extension hstore"
|
|
|
|
env:
|
|
global:
|
|
- PGUSER=postgres
|
|
|
|
install:
|
|
- sudo apt-get update -y
|
|
- sudo apt-get install -y libgeos-dev libprotobuf-dev osmosis
|
|
- LEVELDB_VER=1.18
|
|
- curl -fsSL https://github.com/google/leveldb/archive/v${LEVELDB_VER}.tar.gz | tar -C ${HOME} -xzf -
|
|
- make -C ${HOME}/leveldb-${LEVELDB_VER} -j2
|
|
- sudo mv ${HOME}/leveldb-${LEVELDB_VER}/libleveldb* /usr/lib
|
|
- sudo cp -a ${HOME}/leveldb-${LEVELDB_VER}/include/leveldb /usr/include
|
|
- go get github.com/tools/godep
|
|
|
|
script: make |