language: node_js
node_js:
  - "node"
  - "6"
  - "5"
before_script:
  - psql -c 'create database webmention_test;' -U postgres
script: npm run travis
sudo: false
addons:
  postgresql: "9.3"

language: node_js
before_script:
  - psql -c 'create database webmention_test;' -U postgres
script: npm run travis
sudo: false
matrix:
  include:
    - node_js: "node"
      addons:
        postgresql: "9.4"
    - node_js: "6"
      addons:
        postgresql: "9.4"
    - node_js: "6"
      addons:
        postgresql: "9.3"

Test in different Postgres versions + drop Node 5
Test in different Postgres versions + drop Node 5