You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
32 lines
663 B
Bash
Executable File
32 lines
663 B
Bash
Executable File
#!/bin/bash -l
|
|
|
|
export NVM_DIR="/home/jenkins/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
|
|
nvm use 0.10
|
|
npm install
|
|
|
|
RC=0
|
|
|
|
function fail {
|
|
echo $@ >&2
|
|
RC=1
|
|
}
|
|
|
|
npm test || fail "npm test finished with return code $?"
|
|
|
|
jshint --reporter=checkstyle -c .jshint lib spec > jshint.xml ||
|
|
fail "jshint finished with return code $?"
|
|
|
|
gjslint --unix_mode --disable 0131,0211,0200,0222,0212 \
|
|
--max_line_length 90 \
|
|
-r lib/ -r spec/ > gjslint.log ||
|
|
fail "gjslint finished with return code $?"
|
|
|
|
# delete the old tarball, if it exists
|
|
rm -f matrix-js-sdk-*.tgz
|
|
|
|
npm pack ||
|
|
fail "npm pack finished with return code $?"
|
|
|
|
exit $RC
|