language: node_js

sudo: required  # requirement for postgres 9.5
dist: trusty

node_js:
  - "6.10"

services:
  - postgresql
  - redis-server

env:
  - CXX=g++-4.8 NODE_ENV=development DB_ENV=travis

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - g++-4.8
    - unicode-data
  postgresql: "9.5"

before_script:
  - psql -c 'create database libertysoil;' -U postgres
script: "npm run travis"

language: node_js

sudo: required  # requirement for postgres 9.5
dist: trusty

node_js:
  - "6.10"
  - "7.7"

services:
  - postgresql
  - redis-server

env:
  - CXX=g++-4.8 NODE_ENV=development DB_ENV=travis

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - g++-4.8
    - unicode-data
  postgresql: "9.5"

before_script:
  - psql -c 'create database libertysoil;' -U postgres
script: "npm run travis"

Test using latest NodeJS 7.x too
Test using latest NodeJS 7.x too
