diff --git a/.travis-buster.yml b/.travis-buster.yml new file mode 100644 index 000000000..d7cca7c21 --- /dev/null +++ b/.travis-buster.yml @@ -0,0 +1,18 @@ +version: ~> 1.0 +language: shell + +services: + - docker + +before_install: + - docker pull node:current-buster + +install: + - docker run -w $(pwd) -v $(pwd):$(pwd) node:current-buster /bin/sh -c "npm install" + +script: + #- docker run -w /home/travis -v $(pwd):$(pwd) node:current-buster /bin/sh -c "npm run lint" + - docker run -w $(pwd) -v $(pwd):$(pwd) node:current-buster /bin/sh -c "npm run lint" + - docker run -w $(pwd) -v $(pwd):$(pwd) node:current-buster /bin/sh -c "npm run test" + - docker run -w $(pwd) -v $(pwd):$(pwd) node:current-buster /bin/sh -c "npm run test-coverage && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage" + diff --git a/.travis-stretch.yml b/.travis-stretch.yml new file mode 100644 index 000000000..1902b8a79 --- /dev/null +++ b/.travis-stretch.yml @@ -0,0 +1,18 @@ +version: ~> 1.0 +language: shell + +services: + - docker + +before_install: + - docker pull node:current-stretch + +install: + - docker run -w $(pwd) -v $(pwd):$(pwd) node:current-stretch /bin/sh -c "npm install" + +script: + #- docker run -w /home/travis -v $(pwd):$(pwd) node:current-buster /bin/sh -c "npm run lint" + - docker run -w $(pwd) -v $(pwd):$(pwd) node:current-stretch /bin/sh -c "npm run lint" + - docker run -w $(pwd) -v $(pwd):$(pwd) node:current-stretch /bin/sh -c "npm run test" + - docker run -w $(pwd) -v $(pwd):$(pwd) node:current-stretch /bin/sh -c "npm run test-coverage && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage" + diff --git a/.travis.yml b/.travis.yml index 2d0ea4036..d66cb30c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +version: ~> 1.0 language: node_js node_js: - 0.10 @@ -11,7 +12,23 @@ node_js: - 13 - 13 - 14 +jobs: + include: + - os: linux + dist: xenial + - os: linux + dist: focal + # local imports fetch the same git commit ref + import: + - .travis-buster.yml + #.travis-stretch.yml + script: - npm run lint - npm run test - npm run test-coverage && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage + +# local imports fetch the same git commit ref +#import: +#- one.yml +#- path/to/other.yml