mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
17 lines
295 B
Bash
Executable file
17 lines
295 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "No pull request ID was specified."
|
|
exit 1
|
|
fi
|
|
|
|
git fetch https://github.com/thelounge/thelounge.git refs/pull/${1}/head
|
|
git checkout FETCH_HEAD
|
|
git rebase master
|
|
yarn install
|
|
NODE_ENV=production yarn build
|
|
yarn test || true
|
|
shift
|
|
yarn start "$@"
|