before_install:
  - npm install -g grunt-cli
  - npm install -g bower
  - npm install -g cleverstack-cli

before_script:
  - mysql -e 'create database test_db;'
  - export NODE_ENV=test
  - export NODE_PATH=./lib/:./modules/
  - node tests/before_travis_test.js

script:
  - "npm test"

notifications:
  email:
    - cleverstack@github.com
  irc:
    - "chat.freenode.net#cleverstack"

env:
  - NODE_ENV=test; NODE_PATH=./lib/:./modules/

language: node_js

node_js:
  - '0.10'
  - '0.11'
  - '0.12'

branches:
  only:
    - master

cache:
  directories:
    - node_modules

sudo: false

before_install:
  - npm install -g grunt-cli
  - npm install -g bower
  - npm install -g cleverstack-cli

before_script:
  - mysql -e 'create database test_db;'
  - export NODE_ENV=test
  - export NODE_PATH=./lib/:./modules/
  - node tests/before_travis_test.js

script:
  - "npm test"

notifications:
  email:
    - cleverstack@github.com
  irc:
    - "chat.freenode.net#cleverstack"

env:
  - NODE_ENV=test; NODE_PATH=./lib/:./modules/

language: node_js

node_js:
  - '0.10'
  - '0.11'
  - '0.12'
  - '5.0'
  - '6.0'

branches:
  only:
    - master

cache:
  directories:
    - node_modules

sudo: false

Test against node v5 and v6
feat(tests): Test against node v5 and v6