add log file

This commit is contained in:
Adrian Tiberius 2016-09-18 07:35:45 +03:00
parent 399d51e636
commit d77d57d3e4
1 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,9 @@ if ( $_SERVER['HTTP_X_GITHUB_EVENT'] == 'push' ) {
if( ($fp = popen($command, "r")) ) {
while( !feof($fp) ){
echo fread($fp, 1024);
$result = fread($fp, 1024);
file_put_contents("build.log", $result, FILE_APPEND);
echo $result;
flush();
}
fclose($fp);