2017-10-15 14:48:23 +03:00
|
|
|
language: rust
|
|
|
|
cache: cargo
|
|
|
|
|
2018-01-18 14:33:50 +03:00
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
|
|
|
|
2018-01-18 13:42:06 +03:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- /^v[0-9]/
|
|
|
|
|
|
|
|
services:
|
|
|
|
- postgresql
|
|
|
|
|
2018-01-18 14:33:50 +03:00
|
|
|
# addons:
|
|
|
|
# postgresql: 9.6
|
|
|
|
# apt:
|
|
|
|
# packages:
|
|
|
|
# - postgresql-9.6-postgis-2.4
|
2018-01-18 13:59:02 +03:00
|
|
|
|
2018-01-18 13:42:06 +03:00
|
|
|
env:
|
|
|
|
- DATABASE_URL=postgres://postgres@localhost/test
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- psql -U postgres -c 'create database test'
|
|
|
|
- psql -U postgres -d test -c 'create extension postgis'
|
|
|
|
- psql -U postgres -d test -f fixtures/tilebbox.sql
|
|
|
|
- psql -U postgres -d test -f fixtures/points.sql
|
|
|
|
|
2017-10-15 14:48:23 +03:00
|
|
|
script:
|
|
|
|
- cargo test --verbose --all
|