Skip to content

Commit

Permalink
Test Travis-CI with MySQL + MariaDB + PostgreSQL #54
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Mar 8, 2016
1 parent 9e37c5b commit 13651cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ services:
- mysql

env:
- DB=sqlite
- DB=mysql
- DB=sqlite DJANGO_SETTINGS_MODULE='dsmrreader.config.test_sqlite'
- DB=mysql DJANGO_SETTINGS_MODULE='dsmrreader.config.test_mysql'
# - DB=postgres

before_install:
Expand All @@ -23,8 +23,6 @@ before_script:
# - sh -c "if [ '$DB' = 'pgsql' ]; then createdb -U postgres dsmrreader; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysqladmin --force drop dsmrreader; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysqladmin create dsmrreader; fi"
- sh -c "if [ '$DB' = 'sqlite' ]; then export DJANGO_SETTINGS_MODULE='dsmrreader.config.test_sqlite'; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then export DJANGO_SETTINGS_MODULE='dsmrreader.config.test_mysql'; fi"

script:
- ./manage.py test --noinput --with-coverage
Expand Down

0 comments on commit 13651cf

Please sign in to comment.