Commit 15577e81 authored by David Haynes's avatar David Haynes
Browse files

Lets try out coverage here

- yeah so apparently I should push this to master
- also we ned to ditch the jenkins
parent 42690097
Pipeline #329 failed with stages
in 3 minutes and 33 seconds
......@@ -16,6 +16,7 @@ test_Go:
- apt-get update -qy
- apt-get install -y python-dev python-pip python-pip libldap2-dev mysql-client libmysqlclient-dev python-mysqldb libsasl2-dev libjpeg-dev git
- pip install -r requirements.txt
- pip install coverage
- cp go/settings/settings.py.template go/settings/settings.py
- cp go/settings/secret.py.template go/settings/secret.py
- export SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9" | fold -w 60 | head -n1 2>/dev/null)
......@@ -32,3 +33,5 @@ test_Go:
- 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
script:
- python manage.py test
- coverage html
- grep pc_cov go/go/templates/core/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