Add minimal CI running django tests

This commit is contained in:
fnux 2020-03-09 09:07:14 +01:00
parent 623d3ae5c4
commit 0e4068cea8
2 changed files with 21 additions and 0 deletions

20
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,20 @@
stages:
- lint
- test
# TODO: deploy runners for this project.
run-tests:
stage: test
image: fedora:latest
services:
- postgres:latest
variables:
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

View file

@ -5,3 +5,4 @@ stripe
xmltodict xmltodict
psycopg2 psycopg2
parsedatetime parsedatetime
coverage