Commit 058b07c3 authored by David Haynes's avatar David Haynes 🙆
Browse files

Merge branch '44-gitlab-ci' into 'upgrade-django'

Resolve "Configure gitlab-ci.yml to build on every commit"

See merge request !12
parents fb9de727 e7aa7c7b
Pipeline #1201 passed with stage
in 20 seconds
types:
- test
before_script:
- 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
whats-open-py2.7:
image: library/python:2.7
type: test
script:
- 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