Check code coverage only under node v0.12 => faster
This commit is contained in:
parent
fbccbc9b14
commit
9a06ca2eb3
|
@ -7,7 +7,7 @@ matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
- node_js: "0.12"
|
- node_js: "0.12"
|
||||||
env: OPENPGPJSTEST='unit' OPENPGP_NODE_JS='0.12'
|
env: OPENPGPJSTEST='coverage' OPENPGP_NODE_JS='0.12'
|
||||||
- node_js: "4.2"
|
- node_js: "4.2"
|
||||||
env: OPENPGPJSTEST='unit' OPENPGP_NODE_JS='4.2'
|
env: OPENPGPJSTEST='unit' OPENPGP_NODE_JS='4.2'
|
||||||
- node_js: "5"
|
- node_js: "5"
|
||||||
|
|
10
travis.sh
10
travis.sh
|
@ -2,13 +2,17 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ $OPENPGPJSTEST = "unit" ]; then
|
if [ $OPENPGPJSTEST = "coverage" ]; then
|
||||||
echo "Running OpenPGP.js unit-tests"
|
echo "Running OpenPGP.js unit tests on node.js with code coverage."
|
||||||
grunt coverage
|
grunt coverage
|
||||||
codeclimate-test-reporter < coverage/lcov.info
|
codeclimate-test-reporter < coverage/lcov.info
|
||||||
|
|
||||||
|
elif [ $OPENPGPJSTEST = "unit" ]; then
|
||||||
|
echo "Running OpenPGP.js unit tests on node.js."
|
||||||
|
npm test
|
||||||
|
|
||||||
elif [[ $OPENPGPJSTEST =~ ^end2end-.* ]]; then
|
elif [[ $OPENPGPJSTEST =~ ^end2end-.* ]]; then
|
||||||
echo "Running browser-testing on Saucelabs"
|
echo "Running OpenPGP.js browser unit tests on Saucelabs."
|
||||||
|
|
||||||
declare -a capabilities=(
|
declare -a capabilities=(
|
||||||
"export SELENIUM_BROWSER_CAPABILITIES='{\"browserName\":\"firefox\", \"version\":\"38.0\", \"platform\":\"Linux\"}'"
|
"export SELENIUM_BROWSER_CAPABILITIES='{\"browserName\":\"firefox\", \"version\":\"38.0\", \"platform\":\"Linux\"}'"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user