mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-21 14:44:44 +00:00
use a log and a cron
This commit is contained in:
parent
1882c7ab56
commit
250fc190ba
2 changed files with 7 additions and 4 deletions
6
Makefile
6
Makefile
|
|
@ -18,12 +18,14 @@ DIR = jquery.mobile-${VER}
|
|||
# The output folder for the finished files
|
||||
OUTPUT = compiled
|
||||
|
||||
# Command to remove the latest directory from the CDN before uploading, only if using latest target
|
||||
RMLATEST = ''
|
||||
|
||||
# The output folder for the nightly files.
|
||||
NIGHTLY_OUTPUT = nightlies/${DATE}
|
||||
ifeq (${NIGHTLY_OUTPUT}, latest)
|
||||
RMLATEST = ssh jqadmin@code.origin.jquery.com 'rm -rf /var/www/html/code.jquery.com/mobile/latest'
|
||||
else
|
||||
RMLATEST = ''
|
||||
DIR = jquery.mobile
|
||||
endif
|
||||
NIGHTLY_WEBPATH = http://code.jquery.com/mobile/${NIGHTLY_OUTPUT}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<?php
|
||||
// This file is for the jQuery team only. This is the post commit hook
|
||||
exec('git pull --quiet && make NIGHTLY_OUTPUT=latest nightly >> /dev/null 2>&1');
|
||||
$file = fopen('gitstatus.log','wb');
|
||||
fwrite($file, 'NewCommit');
|
||||
close($file);
|
||||
|
|
|
|||
Loading…
Reference in a new issue