sudo: required
language: ruby
services:
  - docker

before_install:
  - ./build.sh
  - docker-compose up -d
  - docker ps

script:
  - ./test.sh

after_success:
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    docker push pads/rails_docker_wmrug;
    fi

sudo: required
language: ruby
services:
  - docker

env:
  DOCKER_COMPOSE_VERSION: 1.7.1

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
  - ./build.sh
  - docker-compose up -d
  - docker ps

script:
  - ./test.sh

after_success:
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    docker push pads/rails_docker_wmrug;
    fi

Use latest version of docker compose
Use latest version of docker compose
