2018-04-08 20:22:31 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
image: python:3.5
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
|
|
|
|
services:
|
|
|
|
- mdillon/postgis:9.6-alpine
|
|
|
|
|
|
|
|
variables:
|
|
|
|
DEBUG: 1
|
|
|
|
|
|
|
|
POSTGRES_DB: ojusomap
|
|
|
|
POSTGRES_USER: ojusomap
|
|
|
|
POSTGRES_PASSWORD: passw0rd
|
|
|
|
|
|
|
|
DATABASE_HOST: mdillon__postgis
|
|
|
|
DATABASE_NAME: $POSTGRES_DB
|
|
|
|
DATABASE_USER: $POSTGRES_USER
|
|
|
|
DATABASE_PASSWORD: $POSTGRES_PASSWORD
|
|
|
|
|
|
|
|
|
|
|
|
pytest:
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
- pip install -U pip setuptools
|
|
|
|
- pip install -r test_requirements.txt
|
|
|
|
- apt-get update && cat system-requirements.txt | xargs apt-get install -y
|
|
|
|
script:
|
2018-04-12 19:35:53 +00:00
|
|
|
- pytest -v --cov=ojusomap
|