2016-07-14 05:47:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
echo "No pull request ID was specified."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
git fetch https://github.com/thelounge/lounge.git refs/pull/${1}/head
|
|
|
|
git checkout FETCH_HEAD
|
2017-06-20 05:18:30 +00:00
|
|
|
git rebase master
|
2016-07-14 05:47:59 +00:00
|
|
|
npm install
|
2017-06-20 05:17:11 +00:00
|
|
|
NODE_ENV=production npm run build
|
2016-07-14 05:47:59 +00:00
|
|
|
npm test || true
|
2017-10-24 18:23:18 +00:00
|
|
|
shift
|
|
|
|
npm start -- "$@"
|