Permalink
Browse files

Added migration testing on mysql and separated migration testing out.

  • Loading branch information...
1 parent 6f50ee4 commit ac48f920a61b85e3510071ab6095d96dd3b1c715 @melinath melinath committed Mar 12, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 .travis.yml
View
@@ -7,6 +7,7 @@ env:
- MIGRATIONS=yes
- SEARCH=elasticsearch
- DB=mysql
+ - MIGRATIONS=yes DB=mysql
before_install:
- if [ $SEARCH == 'elasticsearch' ]; then sudo service elasticsearch start; sleep 3; fi
install:
@@ -23,4 +24,6 @@ script:
- MC_DIR=`python -c "import localtv, os; print(os.path.dirname(localtv.__file__))"`
# Run contrib tests first so that contest/video foreign keys
# get set up correctly.
- - ./manage.py test --verbosity=2 localtv.contrib localtv.tests --exclude-dir=$MC_DIR/tests/selenium
+ - if [ ! $MIGRATIONS ]; then ./manage.py test --verbosity=2 localtv.contrib localtv.tests --exclude-dir=$MC_DIR/tests/selenium; fi
+ - if [ $MIGRATIONS == 'yes' ]; then ./manage.py syncdb --noinput; fi
+ - if [ $MIGRATIONS == 'yes' ]; then ./manage.py migrate --noinput; fi

0 comments on commit ac48f92

Please sign in to comment.