sudo: required

services:
  - docker

env:
  - DOCKER_COMPOSE_VERSION=1.11.2

language: python

python:
  - "3.4"

install:
  - sudo apt-get update
  - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
  - 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
  - sudo docker --version
  - sudo docker-compose --version

before_script:
  - ./csu start

script:
  - ./csu test
  - ./csu test_backwards
  - ./csu style

after_script:
  - /docker_venv/bin/coveralls

# Stop email notifications but post to organisation Slack channel
notifications:
  email: false
  slack:
    rooms: deptfunstuff:abJKvzApk5SKtcEyAgtswXAv
    on_success: change
    on_failure: change

sudo: required

services:
  - docker

env:
  - DOCKER_COMPOSE_VERSION=1.11.2

language: python

python:
  - "3.4"

install:
  - sudo apt-get update
  - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
  - 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
  - sudo docker --version
  - sudo docker-compose --version

before_script:
  - ./csu start

script:
  - ./csu test
  - ./csu test_backwards
  - ./csu style

after_script:
  - docker-compose run django /docker_venv/bin/coveralls

# Stop email notifications but post to organisation Slack channel
notifications:
  email: false
  slack:
    rooms: deptfunstuff:abJKvzApk5SKtcEyAgtswXAv
    on_success: change
    on_failure: change

Set coveralls command to run in Django container
Set coveralls command to run in Django container
