mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
f275ea0bac
* use new test-helper add test to package.json * try to fix travis build with new test helper * install coveralls globally * work around travis issue with adding node_modules/.bin in PATH
23 lines
622 B
YAML
23 lines
622 B
YAML
sudo: false
|
|
language: node_js
|
|
env:
|
|
- CXX="g++-4.8"
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-4.8
|
|
- gcc-4.8
|
|
node_js:
|
|
- "8"
|
|
- "6"
|
|
- "4"
|
|
before_script:
|
|
# Remove the './node_modules/.bin:' entry, see https://github.com/travis-ci/travis-ci/issues/8813
|
|
- export PATH=`echo ${PATH} | sed -re 's,(^|:)(./)?node_modules/.bin($|:),\1,'`
|
|
- npm install -g istanbul grunt-cli coveralls
|
|
- npm install node-red
|
|
script:
|
|
- istanbul cover grunt --report lcovonly && istanbul report text && ( cat coverage/lcov.info | $(npm get prefix)/bin/coveralls || true ) && rm -rf coverage
|