language: python

env:
  - DOCKER_COMPOSE_VERSION=1.4.2

services:
  - docker

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
  - docker-compose build --parallel

script:
  - docker-compose up -d
  - docker-compose exec main python /var/django/www/manage.py test

deploy:
  provider: script
  script: bash .docker/docker_push
  on:
    branch: dev
language: python

env:
  - DOCKER_COMPOSE_VERSION=1.25.3

services:
  - docker

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
  - docker-compose build --parallel

script:
  - docker-compose up -d
  - docker-compose exec main python /var/django/www/manage.py test

deploy:
  provider: script
  script: bash .docker/docker_push
  on:
    branch: dev
Change version of docker compose
Change version of docker compose
