Travis: create a temp Django database so we can test
This commit is contained in:
parent
7ad5262678
commit
322d90f43b
@ -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 &
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user