martin/.travis.yml

31 lines
569 B
YAML
Raw Normal View History

2017-10-15 14:48:23 +03:00
language: rust
cache: cargo
2018-01-18 14:33:50 +03:00
dist: trusty
sudo: required
2018-01-18 14:33:50 +03:00
2018-01-18 13:42:06 +03:00
branches:
except:
- /^v[0-9]/
services:
- postgresql
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:
- sudo apt-get -qq update
- sudo apt-get install -y postgresql-9.6-postgis-2.4
2018-01-18 13:42:06 +03:00
- psql -U postgres -c 'create database test'
- psql -U postgres -d test -c 'create extension postgis'
2018-01-30 12:36:48 +03:00
- psql -U postgres -d test -f tests/fixtures/points.sql
2018-01-18 13:42:06 +03:00
2017-10-15 14:48:23 +03:00
script:
- cargo test --verbose --all