language: node_js

node_js:
    - '4.2'
    - '5.0'

services:
    - elasticsearch


before_script:
    - git clone https://${GITHUB_TOKEN}:x-oauth-basic@github.com/juttle/juttle.git
    - pushd juttle ; npm install ; npm link ; popd

script:
    - export NODE_PATH="$(dirname `which node`)/../lib/node_modules"
    - mocha

language: node_js

cache:
  directories:
    - node_modules

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

before_install:
  - export CXX="g++-4.8"

node_js:
    - '4.2'
    - '5.0'

services:
    - elasticsearch

before_script:
    - git clone https://${GITHUB_TOKEN}:x-oauth-basic@github.com/juttle/juttle.git
    - pushd juttle ; npm install ; npm link ; popd

script:
    - export NODE_PATH="$(dirname `which node`)/../lib/node_modules"
    - mocha

Add node_modules caching, fix native ext builds
Add node_modules caching, fix native ext builds

Use C++11 compatible compiler in travis, see https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements
