#-------------------------------------------------------------------------------
#
# TravisCI Configuration, https://docs.travis-ci.com/.
#
# Supports running npm based test suite on multiple node versions to ensure
# backwards compatibility is retained.
#
#-------------------------------------------------------------------------------
---
language: node_js

# Run scripts without elevated access.
sudo: false

node_js:
  - "10"
  - "12"
  - "13"

cache: "yarn"

before_script:
  # Install yarn dependencies and skip dependency audit as we will run this
  # explicitly later.
  - "yarn install --no-audit"

script:
  - "yarn audit"
  - "yarn build"
  - "yarn lint"
  - "yarn test"

after_script:
  - 'codecov --token="${CODECOV_TOKEN}"'

#-------------------------------------------------------------------------------
#
# TravisCI Configuration, https://docs.travis-ci.com/.
#
# Supports running npm based test suite on multiple node versions to ensure
# backwards compatibility is retained.
#
#-------------------------------------------------------------------------------
---
language: node_js

# Run scripts without elevated access.
sudo: false

node_js:
  - "10"
  - "12"
  - "13"

cache: "yarn"

before_script:
  # Install yarn dependencies and skip dependency audit as we will run this
  # explicitly later.
  - "yarn install --no-audit"

script:
  - "yarn audit || true"
  - "yarn build"
  - "yarn lint"
  - "yarn test"

after_script:
  - 'codecov --token="${CODECOV_TOKEN}"'

Allow audit to fail so it does not break build
Allow audit to fail so it does not break build
