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