Travis: create a temp Django database so we can test

This commit is contained in:
Doug Blank 2015-08-21 18:27:59 -04:00
parent 7ad5262678
commit 322d90f43b
2 changed files with 7 additions and 1 deletions

View File

@ -21,6 +21,9 @@ install:
# $TRAVIS_BUILD_DIR is set to the location of the cloned repository:
# for example: /home/travis/build/gramps-project/gramps
- python3 setup.py build
- cd gramps/webapp
- make create
- cd ../..
#before_script:
# - sudo Xvfb :99 -ac &

View File

@ -7,6 +7,9 @@ update: grampsdb/fixtures/initial_data.json
$(PYTHON) manage.py createsuperuser --username=admin --email=bugs@gramps-project.org
$(PYTHON) manage.py createsuperuser --username=admin1 --email=bugs@gramps-project.org
create: grampsdb/fixtures/initial_data.json
$(PYTHON) manage.py syncdb --noinput
grampsdb/fixtures/initial_data.json: init.py
mkdir -p grampsdb/fixtures
$(PYTHON) init.py > grampsdb/fixtures/initial_data.json
@ -36,7 +39,7 @@ backup:
restore: empty
$(PYTHON) manage.py loaddata backup.json
initial_data:
initial_data:
$(PYTHON) manage.py loaddata grampsdb/fixtures/initial_data.json
docs: