Fix lightweight build and browserstack test (#1092)

This commit is contained in:
Daniel Huigens 2020-05-06 19:05:13 +02:00
parent e16807505f
commit ad33660da8
2 changed files with 3 additions and 3 deletions

View File

@ -126,8 +126,8 @@ module.exports = function(grunt) {
overwrite: true, overwrite: true,
replacements: [ replacements: [
{ {
from: "external_indutny_elliptic: false", from: "externalIndutnyElliptic: false",
to: "external_indutny_elliptic: true" to: "externalIndutnyElliptic: true"
} }
] ]
}, },

View File

@ -14,7 +14,7 @@ elif [ $OPENPGPJSTEST = "unit" ]; then
elif [ $OPENPGPJSTEST = "browserstack" ]; then elif [ $OPENPGPJSTEST = "browserstack" ]; then
echo "Running OpenPGP.js browser unit tests on Browserstack." echo "Running OpenPGP.js browser unit tests on Browserstack."
grunt build browserify:unittests copy:browsertest --compat=$COMPAT grunt build browserify:unittests copy:browsertest --compat=$COMPAT --lightweight=$LIGHTWEIGHT
echo -n "Using config: " echo -n "Using config: "
echo "{\"browsers\": [$BROWSER], \"test_framework\": \"mocha\", \"test_path\": [\"test/unittests.html?ci=true\"], \"timeout\": 1800, \"exit_with_fail\": true, \"project\": \"openpgpjs/${TRAVIS_EVENT_TYPE:-push}${COMPAT:+/compat}${LIGHTWEIGHT:+/lightweight}\"}" > browserstack.json echo "{\"browsers\": [$BROWSER], \"test_framework\": \"mocha\", \"test_path\": [\"test/unittests.html?ci=true\"], \"timeout\": 1800, \"exit_with_fail\": true, \"project\": \"openpgpjs/${TRAVIS_EVENT_TYPE:-push}${COMPAT:+/compat}${LIGHTWEIGHT:+/lightweight}\"}" > browserstack.json
cat browserstack.json cat browserstack.json