thelounge/scripts/run-pr.sh
2018-02-21 22:47:52 -05:00

18 lines
298 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
npm install
NODE_ENV=production npm run build
npm test || true
shift
npm start -- "$@"