Re-enable linting in CI (#1160)

This commit is contained in:
Dan Ristea 2020-12-08 11:54:16 +00:00 committed by Daniel Huigens
parent 4c15724caf
commit fe51f97b79
2 changed files with 7 additions and 4 deletions

View File

@ -1,13 +1,12 @@
sudo: false
language: node_js language: node_js
cache: cache: npm
directories:
- node_modules
addons: addons:
code_climate: code_climate:
repo_token: $CODECLIMATE_REPO_TOKEN repo_token: $CODECLIMATE_REPO_TOKEN
matrix: matrix:
include: include:
- node_js: "14"
env: OPENPGP_NODE_JS='14' OPENPGPJSTEST='lint'
- node_js: "10" - node_js: "10"
env: OPENPGP_NODE_JS='10' OPENPGPJSTEST='unit' env: OPENPGP_NODE_JS='10' OPENPGPJSTEST='unit'
- node_js: "12" - node_js: "12"

View File

@ -7,6 +7,10 @@ if [ $OPENPGPJSTEST = "coverage" ]; then
npm run coverage npm run coverage
codeclimate-test-reporter < coverage/lcov.info codeclimate-test-reporter < coverage/lcov.info
elif [ $OPENPGPJSTEST = "lint" ]; then
echo "Running OpenPGP.js eslint."
npm run lint
elif [ $OPENPGPJSTEST = "unit" ]; then elif [ $OPENPGPJSTEST = "unit" ]; then
echo "Running OpenPGP.js unit tests on node.js." echo "Running OpenPGP.js unit tests on node.js."
npm test ${LIGHTWEIGHT+ -- --grep lightweight} npm test ${LIGHTWEIGHT+ -- --grep lightweight}