2020-03-09 08:07:14 +00:00
|
|
|
stages:
|
|
|
|
- lint
|
|
|
|
- test
|
|
|
|
|
|
|
|
run-tests:
|
|
|
|
stage: test
|
2020-05-08 10:15:40 +00:00
|
|
|
image: code.ungleich.ch:5050/uncloud/uncloud/uncloud-ci:latest
|
2020-03-09 08:07:14 +00:00
|
|
|
services:
|
|
|
|
- postgres:latest
|
|
|
|
variables:
|
2020-03-09 10:57:18 +00:00
|
|
|
DATABASE_HOST: postgres
|
|
|
|
DATABASE_USER: postgres
|
2020-03-09 08:07:14 +00:00
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
2020-03-09 11:22:04 +00:00
|
|
|
coverage: /^TOTAL.+?(\d+\%)$/
|
2020-03-09 08:07:14 +00:00
|
|
|
script:
|
|
|
|
- pip install -r requirements.txt
|
|
|
|
- coverage run --source='.' ./manage.py test
|
|
|
|
- coverage report
|