dist: bionic

# Only run travis when pushing to master branch (and PRs)
branches:
  only:
    - master

addons:
  firefox: latest
  chrome: stable

language: node_js

node_js:
  - '12'
install:
  - npm install
script:
  - npm run build
  - npm run lint
  - npm run test:coverage
  # Travis machines usually have 2 cores (see https://docs.travis-ci.com/user/reference/overview/#virtualisation-environment-vs-operating-system )
  # Quarantine mode (sigh) to catch unstable tests (see https://devexpress.github.io/testcafe/documentation/guides/basic-guides/run-tests.html#quarantine-mode )
  - BASE_URL=http://127.0.0.1:8000/BookReaderDemo/ npx testcafe --concurrency 2 --quarantine-mode
  - npm run codecov

dist: bionic

# Only run travis when pushing to master branch (and PRs), or branches beginning with "master-"
branches:
  only:
    - master
    - /^master-.*/

addons:
  firefox: latest
  chrome: stable

language: node_js

node_js:
  - '12'
install:
  - npm install
script:
  - npm run build
  - npm run lint
  - npm run test:coverage
  # Travis machines usually have 2 cores (see https://docs.travis-ci.com/user/reference/overview/#virtualisation-environment-vs-operating-system )
  # Quarantine mode (sigh) to catch unstable tests (see https://devexpress.github.io/testcafe/documentation/guides/basic-guides/run-tests.html#quarantine-mode )
  - BASE_URL=http://127.0.0.1:8000/BookReaderDemo/ npx testcafe --concurrency 2 --quarantine-mode
  - npm run codecov

Make Travis runs for any master branch
Make Travis runs for any master branch
