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
|
|
|
|
|
2018-02-21 17:48:22 +00:00
|
|
|
git fetch https://github.com/thelounge/thelounge.git refs/pull/${1}/head
|
2016-07-14 05:47:59 +00:00
|
|
|
git checkout FETCH_HEAD
|
2017-06-20 05:18:30 +00:00
|
|
|
git rebase master
|
2018-02-22 05:50:27 +00:00
|
|
|
yarn install
|
|
|
|
NODE_ENV=production yarn build
|
|
|
|
yarn test || true
|
2017-10-24 18:23:18 +00:00
|
|
|
shift
|
2018-02-22 05:50:27 +00:00
|
|
|
yarn start "$@"
|