dist: trusty
sudo: required
language: shell

services:
  - docker


before_install:
  - make build

script:
  - make migrate
  - make test-coverage

after_success:
  - make coveralls
after_failure:
  - make coveralls

dist: trusty
sudo: required
language: shell

services:
  - docker


before_install:
  - make build

script:
  - make migrate
  - docker-compose -f docker-compose.yml -f docker-compose.test.yml run -e TRAVIS=$TRAVIS -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST --rm oipa coverage run --source=. --omit=*__init__*,*data_backup* manage.py test --nomigrations

after_success:
  - docker-compose -f docker-compose.yml -f docker-compose.test.yml run  -e TRAVIS=$TRAVIS -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST  --rm oipa coveralls
after_failure:
  - docker-compose -f docker-compose.yml -f docker-compose.test.yml run  -e TRAVIS=$TRAVIS -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST  --rm oipa coveralls

Add Travis env vars to docker tests run
Add Travis env vars to docker tests run
