thelounge/scripts/run-pr.sh
Jérémie Astori 5e046a963b Fix run_pr.sh script
`npm run build` is now mandatory.
2017-02-12 17:33:46 -05:00

15 lines
243 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/lounge.git refs/pull/${1}/head
git checkout FETCH_HEAD
npm install
npm run build
npm test || true
npm start