# Travis CI config file
# https://docs.travis-ci.com/

dist: xenial

language: node_js

# TODO: remove unsupported Node.js versions
node_js:
  - "13.*"
  - "12.*"
  - "11.*"
  - "10.*"
  # - "9.*"
  # - "8.*"

cache:
  yarn: true

before_install:
  - sudo apt-get install -y libpcsclite1 libpcsclite-dev pcscd
  - yarn global add node-gyp --ignore-engines # node-gyp is not officially supported on older Node.js versions

install:
  - yarn --ignore-engines # some libs may not be officially supported on older Node.js versions

before_script:
  - yarn build

script:
  - node test/_node-version-test.js
  - yarn test
