2018-04-08 20:22:31 +00:00
|
|
|
---
|
|
|
|
|
2018-09-26 14:21:44 +00:00
|
|
|
image: joyzoursky/python-chromedriver:3.6
|
2018-04-08 20:22:31 +00:00
|
|
|
|
|
|
|
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
|
2018-11-24 13:53:36 +00:00
|
|
|
- pip install -r requirements/base.txt
|
2018-11-24 13:33:41 +00:00
|
|
|
- pip install -r requirements/test.txt
|
2018-11-24 14:12:42 +00:00
|
|
|
- pip install -e git+git://github.com/nitmir/django-cas-server.git@248658b52d3f87d7275a05d5e2c9773a0c2bc5a2#egg=django-cas-server
|
2018-05-19 17:56:17 +00:00
|
|
|
- apt-get update && cat system-requirements-debian.txt | xargs apt-get install -y
|
2018-06-06 14:57:11 +00:00
|
|
|
- python manage.py collectstatic
|
2018-04-08 20:22:31 +00:00
|
|
|
script:
|
2018-09-23 12:50:38 +00:00
|
|
|
- pytest -v --cov=ojusomap --cov=apps
|