sudo: false
language: node_js
# IF NOT EXISTS is mariadb-10+ only - https://mariadb.com/kb/en/mariadb/comment-syntax/
before_script:
  - mysql -e 'create database /*M!50701 IF NOT EXISTS */ test;'
node_js:
  - '0.10'
  - '0.12'
  - '4.5'
  - '5.12'
  - '6.5'


script:
  - "test -z $(npm -ps ls eslint) || npm run-script lint"
  - "npm test"

#matrix:
#    include:
#        - addons:
#             mariadb: 5.5
#          node_js: '4.4'
#        - addons:
#             mariadb: 10.1
#          node_js: '4.4'
#        - addons:
#             mariadb: 5.5
#          node_js: '5.11'
#        - addons:
#             mariadb: 10.1
#          node_js: '5.11'
