-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
30 lines (30 loc) · 1.07 KB
/
.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
dist: xenial
language: python
python:
- 3.7
services:
- postgresql
addons:
postgresql: 9.5
before_install:
- sudo add-apt-repository -y ppa:ubuntugis/ppa
- sudo apt-get update
- sudo apt-get install -y libpq-dev postgresql-9.5-postgis-2.4 gdal-bin
install:
- pip install -r requirements.txt -r requirements-dev.txt
before_script:
- cp config/georef.example.cfg config/georef.cfg
- psql -c "create database georef_ar_etl_test with encoding = 'utf-8';" -U postgres
- psql -c "create database georef_ar_etl with encoding = 'utf-8';" -U postgres
- psql -c "create user georef login password 'changeme'" -U postgres
- psql -c "create extension postgis;" -d georef_ar_etl_test -U postgres
- psql -c "create extension postgis;" -d georef_ar_etl -U postgres
- psql -c "grant all privileges on all tables in schema public to georef" -d georef_ar_etl_test -U postgres
- psql -c "grant all privileges on all tables in schema public to georef" -d georef_ar_etl -U postgres
script:
- make migrate
- make info
- make code_checks
- make coverage
after_success:
- coveralls