Last active
August 29, 2015 14:21
-
-
Save jaceju/ed15e81b5a332db335ed to your computer and use it in GitHub Desktop.
Run PHPCI builds tasks in cron
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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