language: node_js

node_js:
  - "stable"
  - "10.16.3"

cache:
  directories:
    - "node_modules"

before_script:
  - export TZ=Europe/Sofia

install:
  - npm install
  - if [ "$TRAVIS_NODE_VERSION" = "stable" ]; then npm install --only=dev; fi;

script:
  - npm test
  - if [ "$TRAVIS_NODE_VERSION" = "stable" ]; then npm run test:cover; fi;

after_success:
  - if [ "$TRAVIS_NODE_VERSION" = "stable" ]; then npm run coveralls; fi;