language: ruby

rvm:
  - 2.3

services:
  - docker

env:
  DOCKER_COMPOSE_VERSION: 1.11.1

before_install:
  - docker -v
  - docker-compose -v
  - sudo apt-get update
  - sudo apt-get install docker-engine
  - docker -v
  - docker-compose -v

  # Once travis supports same version, the following can be removed
  - 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 -v

  # Port scanning util
  - sudo apt-get install lsof

install:
  - docker-compose build

script:
  # list all listening ports
  - lsof -nP +c 15 | grep LISTEN
  - docker-compose up -d
  - docker ps
  - docker-compose exec test rails test

language: ruby

rvm:
  - 2.3

services:
  - docker

env:
  DOCKER_COMPOSE_VERSION: 1.11.1

before_install:
  - docker -v
  - docker-compose -v
  - sudo apt-get update
  - sudo apt-get install docker-engine
  - docker -v
  - docker-compose -v

  # Once travis supports same version, the following can be removed
  - 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 -v

  # Port scanning util
  - sudo apt-get install lsof

install:
  - docker-compose build

script:
  - docker-compose up -d
  - docker ps
  - docker-compose exec test rails test

Revert "Travis: list active ports"
Revert "Travis: list active ports"

This reverts commit 745c02f7e27eefdc9db5ade77b736d4e74e237f3.
