uncloud/.gitlab-ci.yml

23 lines
579 B
YAML
Raw Permalink Normal View History

2020-03-09 08:07:14 +00:00
stages:
- lint
- test
run-tests:
stage: test
image: fedora:latest
services:
- postgres:latest
variables:
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
before_script:
2020-04-13 10:06:03 +00:00
- dnf install -y python3-devel python3-pip python3-coverage libpq-devel openldap-devel gcc chromium
2020-03-09 08:07:14 +00:00
script:
2020-04-09 12:07:19 +00:00
- cd uncloud_django_based/uncloud
2020-03-09 08:07:14 +00:00
- pip install -r requirements.txt
- cp uncloud/secrets_sample.py uncloud/secrets.py
- coverage run --source='.' ./manage.py test
- coverage report