language: node_js
branches:
  only:
    - master
node_js:
  - lts/*
cache:
  directories:
    - "$HOME/.npm"
services:
  - redis-server
install:
  - npm ci
before_script:
  - NODE_ENV=test npx sequelize-cli db:migrate
  - npm run build
script:
  - npm run lint-ci
  - npm test
after_script:
  - bash <(curl -s https://codecov.io/bash)
