sudo: false
language: python
python:
  - "2.7"

before_install:
  - pip install codecov
  
install:
  - python setup.py -q develop
  - pip install -q psycopg2

before_script:
  - psql -c 'create database modoboa_test;' -U postgres

script: 
  - python ./tests.py
  - cd test_project
  - coverage run --source ../modoboa manage.py test modoboa.core modoboa.lib modoboa.admin.tests modoboa.limits modoboa.relaydomains

after_success:
  - codecov
  

sudo: false
language: python
python:
  - "2.7"

before_install:
  - pip install codecov
  
install:
  - python setup.py -q develop
  - pip install -q psycopg2
  - pip install -q -r test-requirements.txt

before_script:
  - psql -c 'create database modoboa_test;' -U postgres

script: 
  - python ./tests.py
  - cd test_project
  - coverage run --source ../modoboa manage.py test modoboa.core modoboa.lib modoboa.admin.tests modoboa.limits modoboa.relaydomains

after_success:
  - codecov
  

Install test requirements on Travis.
Install test requirements on Travis.

see #831
