Permalink
Browse files

Simplified build_forum and used it in Travis script

  • Loading branch information...
ndarville committed May 3, 2014
1 parent e8bed6e commit a1b89fca85063710c05d7c92824a694ba3ee1823
Showing with 5 additions and 8 deletions.
  1. +4 −7 .travis.yml
  2. +1 −1 build_forum.sh
View
@@ -13,6 +13,9 @@ env:
- DJANGO_SETTINGS_MODULE="ponyforum.settings"
- PYTHONPATH="/home/travis/build/ndarville/pony-forum"
- PIP_USE_MIRRORS=true
# Last two for OS X, courtesy of stackoverflow.com/a/22697917/419005
- CFLAGS=-Qunused-arguments
- CPPFLAGS=-Qunused-arguments
install:
- pip install elementtree --allow-external elementtree --allow-unverified elementtree
@@ -23,15 +26,9 @@ install:
before_script:
- psql -c "CREATE DATABASE travisdb;" -U postgres
- python manage.py syncdb --noinput
- python manage.py schemamigration forum --initial
- python manage.py migrate forum --fake
script:
- python _postinstall/mkadmin.py
- python _postinstall/definesite.py
- python _postinstall/mkplaceholders.py
- python manage.py test
- sh build_forum.sh
after_success:
- pip freeze
View
@@ -8,11 +8,11 @@
# If you have used Pony Forum before, make sure that there is no
# forum/migrations/ folder, since that will break this script.
set -e # stops execution on error
rm -rf forum/migrations
python manage.py schemamigration forum --initial
python manage.py syncdb --noinput
python manage.py migrate forum
python _postinstall/mkadmin.py
python _postinstall/definesite.py
python _postinstall/mkplaceholders.py
python manage.py test
python manage.py runserver

0 comments on commit a1b89fc

Please sign in to comment.