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
35 lines
612 B
Bash
Executable File
35 lines
612 B
Bash
Executable File
#!/bin/bash -l
|
|
|
|
set -x
|
|
|
|
export NVM_DIR="/home/jenkins/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
|
|
|
|
nvm use 6 || exit $?
|
|
npm install || exit $?
|
|
|
|
RC=0
|
|
|
|
function fail {
|
|
echo $@ >&2
|
|
RC=1
|
|
}
|
|
|
|
# don't use last time's test reports
|
|
rm -rf reports || exit $?
|
|
|
|
npm test || fail "npm test finished with return code $?"
|
|
|
|
npm run -s lint -- -f checkstyle > eslint.xml ||
|
|
fail "eslint 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 $?"
|
|
|
|
npm run gendoc || fail "JSDoc failed with code $?"
|
|
|
|
exit $RC
|