use npm scripts arg passing instead of $KARMAFLAGS to make cross-compat

pull/21833/head
Michael Telatynski 2017-07-11 22:54:18 +01:00
parent 569ea909c4
commit 7473c654d5
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
2 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,6 @@
set -e set -e
export KARMAFLAGS="--no-colors"
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm use 4 nvm use 4
@ -16,7 +15,7 @@ npm install
(cd node_modules/matrix-js-sdk && npm install) (cd node_modules/matrix-js-sdk && npm install)
# run the mocha tests # run the mocha tests
npm run test npm run test -- --no-colors
# run eslint # run eslint
npm run lintall -- -f checkstyle -o eslint.xml || true npm run lintall -- -f checkstyle -o eslint.xml || true

View File

@ -41,8 +41,8 @@
"lintall": "eslint src/ test/", "lintall": "eslint src/ test/",
"clean": "rimraf lib", "clean": "rimraf lib",
"prepublish": "npm run build && git rev-parse HEAD > git-revision.txt", "prepublish": "npm run build && git rev-parse HEAD > git-revision.txt",
"test": "karma start $KARMAFLAGS --single-run=true --browsers ChromeHeadless", "test": "karma start --single-run=true --browsers ChromeHeadless",
"test-multi": "karma start $KARMAFLAGS" "test-multi": "karma start"
}, },
"dependencies": { "dependencies": {
"babel-runtime": "^6.11.6", "babel-runtime": "^6.11.6",