Skip to content

Instantly share code, notes, and snippets.

@jaceju
Last active August 29, 2015 14:21
Show Gist options
  • Save jaceju/ed15e81b5a332db335ed to your computer and use it in GitHub Desktop.
Save jaceju/ed15e81b5a332db335ed to your computer and use it in GitHub Desktop.
Run PHPCI builds tasks in cron
#!/bin/bash
CUR_PATH=`pwd`
CI_PATH=${CUR_PATH}/PHPCI
LOG_PATH=${CUR_PATH}/.log
mkdir -p $LOG_PATH
if ps -ef | grep -v grep | grep "phpci:run-builds"; then
exit 0
else
echo "starting phpci cron"
${CI_PATH}/console phpci:run-builds >> ${LOG_PATH}/phpci.log
exit 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment