2020-03-09 08:07:14 +00:00
|
|
|
stages:
|
|
|
|
- lint
|
|
|
|
- test
|
|
|
|
|
|
|
|
# TODO: deploy runners for this project.
|
|
|
|
run-tests:
|
|
|
|
stage: test
|
|
|
|
image: fedora:latest
|
|
|
|
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
|
|
|
|
before_script:
|
|
|
|
- dnf install -y python3-devel python3-pip libpq-devel openldap-devel gcc
|
|
|
|
script:
|
|
|
|
- cd uncloud
|
|
|
|
- pip install -r requirements.txt
|
|
|
|
- cp uncloud/secrets_sample.py uncloud/secrets.py
|
|
|
|
- coverage run --source='.' ./manage.py test
|
|
|
|
- coverage report
|