hardlounge/scripts/run-pr.sh

18 lines
295 B
Bash
Raw Normal View History

#!/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
2018-02-22 05:50:27 +00:00
yarn install
NODE_ENV=production yarn build
yarn test || true
shift
2018-02-22 05:50:27 +00:00
yarn start "$@"