forked from node-red/node-red-nodes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 1.28 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
sudo: false
language: node_js
matrix:
# allow_failures:
# - node_js: 16
include:
- node_js: 16
- node_js: 14
- node_js: 12
# - python: 2.7
# language: python
# before_script: pip install flake8
# script: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
- python: 3.7
language: python
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
before_script: pip install flake8
script: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
before_install:
- npm i -g npm
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 nyc 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
# - nyc --check-coverage --reporter=text --reporter=lcovonly --reporter=html grunt
# - nyc grunt && rm -rf coverage .nyc_output
- nyc grunt && nyc report --reporter=text-lcov | coveralls