language: node_js

env:
  - CXX=g++-4.8

node_js:
  - 12
  - 14
  - 16

notifications:
  email:
    - lilleman@larvit.se

before_install:
  - $CXX --version

install:
  - if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
  - npm i

before_script:
  - mysql -e 'CREATE DATABASE test'

script: npm run test

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