Add minimal CI running django tests
This commit is contained in:
parent
623d3ae5c4
commit
0e4068cea8
2 changed files with 21 additions and 0 deletions
20
.gitlab-ci.yml
Normal file
20
.gitlab-ci.yml
Normal 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
|
|
@ -5,3 +5,4 @@ stripe
|
|||
xmltodict
|
||||
psycopg2
|
||||
parsedatetime
|
||||
coverage
|
||||
|
|
Loading…
Reference in a new issue