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:
|
# $TRAVIS_BUILD_DIR is set to the location of the cloned repository:
|
||||||
# for example: /home/travis/build/gramps-project/gramps
|
# for example: /home/travis/build/gramps-project/gramps
|
||||||
- python3 setup.py build
|
- python3 setup.py build
|
||||||
|
- cd gramps/webapp
|
||||||
|
- make create
|
||||||
|
- cd ../..
|
||||||
|
|
||||||
#before_script:
|
#before_script:
|
||||||
# - sudo Xvfb :99 -ac &
|
# - 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=admin --email=bugs@gramps-project.org
|
||||||
$(PYTHON) manage.py createsuperuser --username=admin1 --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
|
grampsdb/fixtures/initial_data.json: init.py
|
||||||
mkdir -p grampsdb/fixtures
|
mkdir -p grampsdb/fixtures
|
||||||
$(PYTHON) init.py > grampsdb/fixtures/initial_data.json
|
$(PYTHON) init.py > grampsdb/fixtures/initial_data.json
|
||||||
@ -36,7 +39,7 @@ backup:
|
|||||||
restore: empty
|
restore: empty
|
||||||
$(PYTHON) manage.py loaddata backup.json
|
$(PYTHON) manage.py loaddata backup.json
|
||||||
|
|
||||||
initial_data:
|
initial_data:
|
||||||
$(PYTHON) manage.py loaddata grampsdb/fixtures/initial_data.json
|
$(PYTHON) manage.py loaddata grampsdb/fixtures/initial_data.json
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
|
Loading…
Reference in New Issue
Block a user