Commit bb02027b authored by Michael Lundquist's avatar Michael Lundquist
Browse files

Adding a first crack at auto-generating an erd

parent 2dba5fdb
Pipeline #4884 failed
......@@ -8,9 +8,15 @@ variables:
types:
- test
artifacts:
paths:
- /whats-open/erd.png
expire_in: 1 week
before_script:
- apt-get update -qy
- apt-get install -y default-mysql-client default-libmysqlclient-dev python-mysqldb
- apt-get install -y default-mysql-client default-libmysqlclient-dev python-mysqldb graphviz
gdal-bin libproj-dev proj-data proj-bin binutils
- cd whats-open/
- pip install pipenv
......@@ -30,6 +36,9 @@ before_script:
- python manage.py migrate
- echo "from django.contrib.auth.models import User; User.objects.filter(username='$WOPEN_SUPERUSER$WOPEN_EMAIL_DOMAIN').delete(); User.objects.create_superuser('$WOPEN_SUPERUSER$WOPEN_EMAIL_DOMAIN', '$WOPEN_SUPERUSER', 'admin')" | python manage.py shell
- python3 manage.py loaddata --format json categoriesFixture locationFixture openTimeFixture scheduleFixture settingsFixture
- python manage.py graph_models --dot --group api > erd.dot
- dot -Tpng erd.dot > erd.png
whats-open-py3.7:
image: library/python:3.7
type: test
......
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