# Travis CI config
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/

sudo: false
language: node_js
node_js:
    - "10"
    - "12"
env:
  - PROM_CLIENT_VERSION="10"
  - PROM_CLIENT_VERSION="11"
  - PROM_CLIENT_VERSION="12"

branches:
  only:
    - master            # only run CI on the master branch
    - /^PR /            # also build pull requests

services:
  - elasticsearch

before_script:
  - sleep 10
  - npm install prom-client@"$PROM_CLIENT_VERSION" # install specific prom-client version (a peer dependency)

script:
  - npm run test

after_success:
  - ls -R1 coverage-report/lcov.info                                        # list the files (for debugging)
  - cat coverage-report/lcov.info | node_modules/coveralls/bin/coveralls.js # send code-coverage data to Coveralls

# Travis CI config
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/

sudo: false
language: node_js
node_js:
    - "12"
    - "14"
env:
  - PROM_CLIENT_VERSION="11"
  - PROM_CLIENT_VERSION="12"
  - PROM_CLIENT_VERSION="13"

branches:
  only:
    - master            # only run CI on the master branch
    - /^PR /            # also build pull requests

services:
  - elasticsearch

before_script:
  - sleep 10
  - npm install prom-client@"$PROM_CLIENT_VERSION" # install specific prom-client version (a peer dependency)

script:
  - npm run test

after_success:
  - ls -R1 coverage-report/lcov.info                                        # list the files (for debugging)
  - cat coverage-report/lcov.info | node_modules/coveralls/bin/coveralls.js # send code-coverage data to Coveralls

Build & test environments: node 12,14, prom-client 11,12,13
Build & test environments: node 12,14, prom-client 11,12,13
