2019-03-27 22:58:24 +00:00
|
|
|
cache: pip
|
|
|
|
|
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "3.6"
|
|
|
|
|
2019-03-28 00:03:11 +00:00
|
|
|
services:
|
|
|
|
- postgresql
|
|
|
|
|
2019-03-28 00:25:53 +00:00
|
|
|
addons:
|
|
|
|
postgresql: "9.6"
|
|
|
|
|
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:
|
2019-03-28 00:10:16 +00:00
|
|
|
- psql -c "CREATE ROLE bornhack WITH CREATEDB 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
|