sudo: required
language: node_js
node_js:
  - 6
  - 8
  - 9
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - socat
      - g++-6
env:
  global:
    - CXX=g++-6
  matrix:
    - TARGET=test
    - TARGET=test-stress
    - TARGET=test-multi
    - TARGET=test-multi-remote
before_install:
  - ssh-keygen -t rsa -f ~/.ssh/id_rsa -N ''
  - cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
  - ssh-keyscan -t rsa localhost >> ~/.ssh/known_hosts
  - echo PATH=\"$(dirname "$(which python)"):\$PATH\" > ~/.bashrc.new
  - echo . ~/.nvm/nvm.sh > ~/.bashrc.new
  - cat ~/.bashrc >> ~/.bashrc.new
  - mv ~/.bashrc.new ~/.bashrc
  - cat ~/.bashrc
  - nvm alias default "$(nvm current)"
  - ssh localhost node --version
  - pyenv versions
  - pyenv global "$PYVER"
  - ssh localhost python --version
  - npm install fs-ext
script:
  - npm run ci-$TARGET-$(node --version | grep -oE '[0-9]+' | head -1)

sudo: required
language: node_js
node_js:
  - 6
  - 8
  - 10
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - socat
      - g++-6
env:
  global:
    - CXX=g++-6
  matrix:
    - TARGET=test
    - TARGET=test-stress
    - TARGET=test-multi
    - TARGET=test-multi-remote
before_install:
  - ssh-keygen -t rsa -f ~/.ssh/id_rsa -N ''
  - cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
  - ssh-keyscan -t rsa localhost >> ~/.ssh/known_hosts
  - echo PATH=\"$(dirname "$(which python)"):\$PATH\" > ~/.bashrc.new
  - echo . ~/.nvm/nvm.sh > ~/.bashrc.new
  - cat ~/.bashrc >> ~/.bashrc.new
  - mv ~/.bashrc.new ~/.bashrc
  - cat ~/.bashrc
  - nvm alias default "$(nvm current)"
  - ssh localhost node --version
  - pyenv versions
  - pyenv global "$PYVER"
  - ssh localhost python --version
  - npm install fs-ext
script:
  - npm run ci-$TARGET-$(node --version | grep -oE '[0-9]+' | head -1)

Test Node 10 instead of 9 on Travis
Test Node 10 instead of 9 on Travis
