2012-11-02 22:20:39 +01:00
|
|
|
#!/bin/sh -e
|
2012-09-04 22:31:56 +02:00
|
|
|
mkdir -p zephyr/fixtures
|
2012-10-11 00:12:27 +02:00
|
|
|
rm -f zephyr/tests/zephyrdb.test
|
2013-01-10 22:58:01 +01:00
|
|
|
|
|
|
|
# Remove time.pyc to try to prevent it from screwing people importing
|
|
|
|
# time from inside zephyr.lib. We can drop this hack after a bit.
|
|
|
|
rm -f zephyr/lib/time.pyc
|
|
|
|
|
2012-10-11 00:10:48 +02:00
|
|
|
python manage.py syncdb --noinput --settings=humbug.test_settings
|
2013-01-09 18:16:07 +01:00
|
|
|
python manage.py migrate --settings=humbug.test_settings --all
|
2013-01-08 21:59:52 +01:00
|
|
|
# This next line can be simplified to "-n0" once we fix our app with 0 messages.
|
|
|
|
python manage.py populate_db --settings=humbug.test_settings --test-suite -n2 \
|
|
|
|
--threads=1 --huddles=0 --personals=0 --percent-huddles=0 --percent-personals=0
|
2012-10-25 06:11:28 +02:00
|
|
|
python manage.py dumpdata --settings=humbug.test_settings \
|
|
|
|
auth.User zephyr.UserProfile zephyr.Stream zephyr.Recipient \
|
|
|
|
zephyr.Subscription zephyr.Message zephyr.Huddle zephyr.Realm \
|
2012-11-27 18:26:51 +01:00
|
|
|
zephyr.UserMessage zephyr.Client \
|
|
|
|
zephyr.DefaultStream > zephyr/fixtures/messages.json
|