2020-02-24 22:28:52 +00:00
|
|
|
dist: bionic
|
|
|
|
|
2019-03-27 22:58:24 +00:00
|
|
|
cache: pip
|
|
|
|
|
|
|
|
language: python
|
|
|
|
python:
|
2020-02-24 22:28:52 +00:00
|
|
|
- "3.7"
|
2019-03-27 22:58:24 +00:00
|
|
|
|
2019-03-28 00:03:11 +00:00
|
|
|
services:
|
|
|
|
- postgresql
|
|
|
|
|
2019-03-28 00:25:53 +00:00
|
|
|
addons:
|
|
|
|
postgresql: "9.6"
|
2020-02-24 22:28:52 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- postgresql-9.6-postgis-2.5
|
2019-03-28 00:25:53 +00:00
|
|
|
|
2019-03-27 22:58:24 +00:00
|
|
|
install:
|
|
|
|
- pip install -r src/requirements/dev.txt
|
|
|
|
|
2019-03-28 00:03:11 +00:00
|
|
|
before_script:
|
2020-02-24 22:28:52 +00:00
|
|
|
- psql -c "CREATE ROLE bornhack WITH SUPERUSER LOGIN PASSWORD 'bornhack';"
|
2019-03-28 00:03:11 +00:00
|
|
|
|
2019-03-27 22:58:24 +00:00
|
|
|
script:
|
2019-03-27 23:06:00 +00:00
|
|
|
- cp src/bornhack/environment_settings.py.dist.dev src/bornhack/environment_settings.py
|
2019-03-28 19:48:48 +00:00
|
|
|
- coverage run --source src/ src/manage.py test src/
|
2019-03-29 11:06:41 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- codecov
|