sudo: false

language: node_js

node_js:
  - "0.12"
  - "4"
  - "5"
  - "6"

services:
  - mongodb
  - redis-server

before_install:
  - mysql -e "create database IF NOT EXISTS test;" -uroot
  - echo "USE mysql;\nUPDATE user SET password=PASSWORD('Password12!') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root

env:
  - GCLOUD_PROJECT=0 CXX=g++-4.8

script:
  - ./bin/run-test.sh -c

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