23 lines
633 B
Bash
23 lines
633 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Check for merge conflicts before proceeding
|
|
python -m compileall -f "${GITHUB_WORKSPACE}"
|
|
if grep -lr --exclude-dir=node_modules "^<<<<<<< " "${GITHUB_WORKSPACE}"
|
|
then echo "Found merge conflicts"
|
|
exit 1
|
|
fi
|
|
|
|
# install wkhtmltopdf
|
|
wget -O /tmp/wkhtmltox.tar.xz https://github.com/frappe/wkhtmltopdf/raw/master/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
|
|
tar -xf /tmp/wkhtmltox.tar.xz -C /tmp
|
|
sudo mv /tmp/wkhtmltox/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
|
|
sudo chmod o+x /usr/local/bin/wkhtmltopdf
|
|
|
|
# install cups
|
|
sudo apt-get install libcups2-dev
|
|
|
|
# install redis
|
|
sudo apt-get install redis-server
|
|
|