language: node_js

node_js:
  - "8"
  - "6"
  - "4.3.2"

addons:
  postgresql: "9.4"

env:
  TEST_PG_URL: postgres://localhost:5432/travis

cache:
  yarn: true
  directories:
    - node_modules
    - $NVM_DIR

script:
  - scripts/ci

after_success:
  - "cd examples/forum && scripts/run-schema-demo $DEMO_PG_URL"

matrix:
  include:
    - addons:
        postgresql: 9.5
      sudo: required
      dist: trusty

language: node_js

node_js:
  - "8"
  - "4.3.2"

addons:
  postgresql: "9.4"

env:
  TEST_PG_URL: postgres://localhost:5432/travis

cache:
  yarn: true
  directories:
    - node_modules
    - $NVM_DIR

script:
  - scripts/ci

after_success:
  - "cd examples/forum && scripts/run-schema-demo $DEMO_PG_URL"

matrix:
  include:
    - addons:
        postgresql: 9.5
      sudo: required
      dist: trusty

Drop Node v6 from tests (just 4 and 8 should cover it)
Drop Node v6 from tests (just 4 and 8 should cover it)
