language: python

python:
  - "2.7"

# command to install dependencies
install:
  - pip install -r requirements.pip --use-mirrors
  - sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm

env:
  - DJANGO_SETTINGS_MODULE=settings.travis

before_script:
  - psql -c 'create database edtrac;' -U postgres
  - git submodule init
  - git submodule update

# command to run tests
script:
  - cd edtrac_project
  - python manage.py syncdb --noinput --settings=settings.test
  - python manage.py migrate --settings=settings.test
  - python manage.py test

language: python

python:
  - "2.7"

# command to install dependencies
install:
  - pip install -r requirements.pip --use-mirrors
  - sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm

env:
  - DJANGO_SETTINGS_MODULE=settings.travis

before_script:
  - psql -c 'create database edtrac;' -U postgres
  - git submodule init
  - git submodule update

# command to run tests
script:
  - cd edtrac_project
  - python manage.py syncdb --noinput --settings=settings.local
  - python manage.py migrate --settings=settings.local
  - python manage.py test

Use local settings for Travis because test has bad db credentials.
Use local settings for Travis because test has bad db credentials.
