---
sudo: required
dist: trusty
language: python
cache: pip
python:
  - "3.6"
services:
  - docker
env:
  - DJANGO_DATABASE_URL=postgresql://chaospizza:chaospizza@db:5432/chaospizza
install:
  - pip install coveralls
  - which coveralls >/dev/null 2>&1
  - make build-image
  - make check
before_script:
  - mkdir -p build/{db,coverage}
  - docker-compose up -d db
script:
  - make lint
  - make TESTOPTS="--verbose" test
after_script:
  - docker-compose down
  - cp build/coverage/datafile .coverage
after_success:
  - coveralls

---
sudo: required
dist: trusty
language: python
cache: pip
python:
  - "3.6"
services:
  - docker
env:
  - DJANGO_DATABASE_URL=postgresql://chaospizza:chaospizza@db:5432/chaospizza
install:
  - pip install coveralls
  - which coveralls >/dev/null 2>&1
  - make build-image
  - make check
before_script:
  - mkdir -p build/{db,coverage}
  - docker-compose up -d db
script:
  - make lint
  - make TESTOPTS="--verbose" test
after_success:
  - cp build/coverage/datafile .coverage
  - coveralls
after_script:
  - docker-compose down

Fix order bug when copying coverage results for coveralls
fix(build): Fix order bug when copying coverage results for coveralls
