Unverified Commit 4cc472c7 authored by David Haynes's avatar David Haynes
Browse files

ci: Add gitlab-ci.yml basic config

- Tests basic build
- runs unit tests
- Computes coverage

Closes #44
parent 110bf730
Pipeline #1144 failed with stage
in 17 seconds
- test
- apt-get update -qy
- pip install -r requirements/test.txt
- cd whats_open/
- python manage.py makemigrations
- python manage.py makemigrations website
- python manage.py migrate
- echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('root', 'root@srct.gmu.edu', 'root') " | python manage.py shell
image: library/python:2.7
type: test
- python manage.py test
- coverage run --source=website --omit=*migrations/*,*admin.py,*__init__.py,*.pyc manage.py test
- coverage html -i && grep pc_cov htmlcov/index.html | egrep -o "[0-9]+\%" | awk '{ print "covered " $1;}'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment