Skip to content

Commit

Permalink
audit
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed May 14, 2018
1 parent 4e9433c commit 227b48e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ node_js:
- '6'
- '4'

cache:
directories:
node_modules

install:
- node_version=$(node -v); if [ ${node_version:1:2} -ge 10 ]; then npm i -g npm@6; npm ci; fi


after_script:
npm run coverage
- node_version=$(node -v); if [ ${node_version:1:2} -ge 10 ]; then npm audit; fi
- npm run coveralls


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "eraro.js",
"scripts": {
"test": "lab -v -P test -t 80 -I URL,URLSearchParams",
"coverage": "lab -s -P test -r lcov -I URL,URLSearchParams | coveralls",
"coveralls": "lab -s -P test -r lcov -I URL,URLSearchParams | coveralls",
"prettier": "prettier --write --no-semi --single-quote *.js lib/*.js test/*.js"
},
"repository": {
Expand Down

0 comments on commit 227b48e

Please sign in to comment.