language: node_js

stages:
  - basic
  - modules

matrix:
  include:
    - os: linux
      node_js: "10"
      env: JOB_PART=test
      stage: basic
    - os: linux
      node_js: "8"
      env: JOB_PART=test
      stage: basic
    - os: linux
      node_js: "6"
      env: JOB_PART=test
      stage: basic
    - os: linux
      node_js: "10"
      env: JOB_PART=test-modules
      stage: modules
  fast_finish: true

sudo: false
script: npm run $JOB_PART
after_script: npm run coverage
