sudo: required

git:
  quiet: true

language: node_js

node_js:
  - "8"

before_script:
  - docker pull ubuntu

services:
  - docker

before_install:
  - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  - sudo apt-get update
  - sudo apt-get -y install docker-ce
  - cd ..
  - git clone --depth=50 --branch=master https://github.com/apocas/dockerode.git
  - cd dockerode
  - npm install
  - cd ../docker-modem

install:
  - npm install

script:
  - npm test
  - cd ../dockerode
  - rm -rf ./node_modules/docker-modem
  - npm install git://github.com/apocas/docker-modem
  - npm test
