diff --git a/.travis.yml b/.travis.yml index f321b199..7aa90100 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,12 @@ -sudo: false language: node_js -cache: - directories: - - node_modules +cache: npm addons: code_climate: repo_token: $CODECLIMATE_REPO_TOKEN matrix: include: + - node_js: "14" + env: OPENPGP_NODE_JS='14' OPENPGPJSTEST='lint' - node_js: "10" env: OPENPGP_NODE_JS='10' OPENPGPJSTEST='unit' - node_js: "12" diff --git a/travis.sh b/travis.sh index 2cfa3cb3..065a1d52 100755 --- a/travis.sh +++ b/travis.sh @@ -7,6 +7,10 @@ if [ $OPENPGPJSTEST = "coverage" ]; then npm run coverage codeclimate-test-reporter < coverage/lcov.info +elif [ $OPENPGPJSTEST = "lint" ]; then + echo "Running OpenPGP.js eslint." + npm run lint + elif [ $OPENPGPJSTEST = "unit" ]; then echo "Running OpenPGP.js unit tests on node.js." npm test ${LIGHTWEIGHT+ -- --grep lightweight}