sudo: required
services:
  - docker
language: python
python:
  - 2.7
install:
  - docker-compose up --build -d
script: >-
  docker-compose run web dockerize -wait tcp://db:3306 -timeout 120s
  bash -c "
  python manage.py test
  "
after_script:
  - docker-compose down

sudo: required

services:
  - docker

language: python

python:
  - 2.7

env:
  DOCKER_COMPOSE_VERSION: 1.12.0

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 up --build -d

script: >-
  docker-compose run web dockerize -wait tcp://db:3306 -timeout 120s
  bash -c "
  python manage.py test
  "

after_script:
  - docker-compose down

Update the docker compose version
Update the docker compose version
