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