sudo: false

language: node_js

node_js:
  - stable
  - 7
  - 6
  - 5
  - 4
  - 0

os:
  - linux
  - osx

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - doxygen
      - g++-4.8

# Install scripts. (runs after repo cloning)
install:
  - if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
  # install modules
  - npm install --build-from-source

# Post-install test scripts.
script:
  - if [ $TRAVIS_OS_NAME == "linux" ] && [ $TRAVIS_NODE_VERSION == "stable" ]; then
      make test VERBOSE=1;
      make package VERBOSE=1;
    fi

  - npm test
  - npm run deploy

sudo: false

language: node_js

node_js:
  - stable
  - 7
  - 6
  - 5
  - 0

os:
  - linux
  - osx

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - doxygen
      - g++-4.8

# Install scripts. (runs after repo cloning)
install:
  - if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
  # install modules
  - npm install --build-from-source

# Post-install test scripts.
script:
  - if [ $TRAVIS_OS_NAME == "linux" ] && [ $TRAVIS_NODE_VERSION == "stable" ]; then
      make test VERBOSE=1;
      make package VERBOSE=1;
    fi

  - npm test
  - npm run deploy

Remove node.js v4 on Travis CI just like AppVeyor
Remove node.js v4 on Travis CI just like AppVeyor

Ref: #244 / e9463d154933b05c77bcb535299c9bec75b384a2
