language: ruby

sudo: required

dist: trusty

env:
  global:
    - DEBIAN_FRONTEND=noninteractive

before_install:
  - sudo apt-get update -y -qq
  - sudo apt-get install -yqq lvm2 xfsprogs sshpass
  - if ! command -v docker ; then curl -sSL https://get.docker.io | bash; fi
  - sudo usermod -a -G docker travis
  - docker pull quay.io/travisci/travis-ruby:latest
  - jq --version || sudo curl -sSL -o /usr/local/bin/jq http://stedolan.github.io/jq/download/linux64/jq && sudo chmod 0755 /usr/local/bin/jq
  - docker images | grep -q -E '^travis\\s+\\bruby\\b\\s+' || docker tag quay.io/travisci/travis-ruby:latest travis:ruby
  - docker run -v /var/tmp:/var/tmp -v /home/travis/build:/home/travis/build -d travis:ruby | tee docker_id
  - docker inspect $(< docker_id)
  - docker inspect $(< docker_id) | awk -F '"' '/IPAddress/ {print $4}' | tee docker_ip_address
  - echo "date\nexit\n" | sshpass -p travis ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no travis@$(< docker_ip_address)

install:
  - true

script:
  - true

notifications:
  email: false

language: ruby

sudo: required

dist: trusty

env:
  global:
    - DEBIAN_FRONTEND=noninteractive

before_install:
  - sudo apt-get update -y -qq
  - sudo apt-get install -yqq lvm2 xfsprogs sshpass
  - if ! command -v docker ; then curl -sSL https://get.docker.io | bash; fi
  - sudo usermod -a -G docker travis
  - docker pull quay.io/travisci/travis-ruby:latest
  - jq --version || sudo curl -sSL -o /usr/local/bin/jq http://stedolan.github.io/jq/download/linux64/jq && sudo chmod 0755 /usr/local/bin/jq
  - docker images | grep -q -E '^travis\\s+\\bruby\\b\\s+' || docker tag quay.io/travisci/travis-ruby:latest travis:ruby
  - docker run -v /var/tmp:/var/tmp -v /home/travis/build:/home/travis/build -d travis:ruby | tee docker_id
  - docker inspect $(< docker_id)
  - docker inspect $(< docker_id) | awk -F '"' '/IPAddress/ {print $4}' | tee docker_ip_address

install:
  - true

script:
  - echo "date\nexit\n" | sshpass -p travis ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no travis@$(< docker_ip_address)

notifications:
  email: false

Move ssh command to 'script'
Move ssh command to 'script'
