Skip to content

Commit

Permalink
extends travis matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Oct 5, 2013
1 parent ff4874f commit 4520b74
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,26 @@ services:
- PostgreSQL
python:
- 2.7

env:
- DJANGO="1.4.x" DBENGINE=mysql
- DJANGO="1.4.x" DBENGINE=pg

- DJANGO="1.5.x" DBENGINE=mysql
- DJANGO="1.5.x" DBENGINE=pg

- DJANGO="1.6.x" DBENGINE=mysql
- DJANGO="1.6.x" DBENGINE=pg

- DJANGO="dev" DBENGINE=mysql
- DJANGO="dev" DBENGINE=pg


install:
- make install-deps
- sh -c "if [ '$DBENGINE' = 'pg' ]; then pip install -q psycopg2; fi"
- sh -c "if [ '$DBENGINE' = 'mysql' ]; then pip install -q MySQL-python; fi"


script:
- make ci

before_install:
- sh -c "if [ '$DBENGINE' = 'pg' ]; then psql -c 'DROP DATABASE IF EXISTS concurrency;' -U postgres; fi"
- sh -c "if [ '$DBENGINE' = 'mysql' ]; then mysql -e 'DROP DATABASE IF EXISTS concurrency;'; fi"

before_script:
- sh -c "if [ '$DBENGINE' = 'pg' ]; then psql -c 'CREATE DATABASE concurrency;' -U postgres; fi"
- sh -c "if [ '$DBENGINE' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS concurrency;'; fi"
- make init-db ci

matrix:
exclude:
Expand Down

0 comments on commit 4520b74

Please sign in to comment.