language: python

services:
  - docker

sudo: required

env:
  global:
    - DB_USER=hunt
    - DB_PASSWORD=test
    - DJANGO_SECRET_KEY=test_secret_key
    - DOCKER_COMPOSE_VERSION=1.23.2

before_install:
  - sudo rm /usr/local/bin/docker-compose
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin

install:
  - docker-compose build
  - docker-compose up -d

script:
  - docker-compose exec app python3 /code/manage.py test
  - docker-compose exec app ls -lah
  - ls -lah
  - docker-compose exec app cat .coverage*

after_script:
  - docker-compose stop
  - docker-compose rm -f

after_success:
  - pip install coveralls
  - coveralls
language: python

services:
  - docker

sudo: required

env:
  global:
    - DB_USER=hunt
    - DB_PASSWORD=test
    - DJANGO_SECRET_KEY=test_secret_key
    - DOCKER_COMPOSE_VERSION=1.23.2

before_install:
  - sudo rm /usr/local/bin/docker-compose
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin

install:
  - docker-compose build
  - docker-compose up -d

script:
  - docker-compose exec app python3 /code/manage.py test
  - docker-compose exec app ls -lah
  - ls -lah
  - docker-compose exec app cat .coverage*

after_script:
  - docker-compose stop
  - docker-compose rm -f

after_success:
  - pip install coveralls
  - coverage combine
  - coveralls
Add the magic coverage command
Add the magic coverage command
