This document describes the automatic build system, using SourceForge’s Compile Farm.
|
Account/machine |
Time |
Script |
action |
|
millis@shell.sourceforge.net |
00:00 PDT |
Daily.sh |
/bin/rm -f
/home/users/m/mi/millis/*njudge*gz /bin/rm -f
/home/users/m/mi/millis/report* |
|
01:01 PDT |
Daily.sh |
scp -B
/usr/local/njudge/sandbox/njudge/njudge*tar*gz
millis@incoming.sourceforge.net: |
|
|
02:02 PDT |
Daily.sh |
#!/bin/bash #ls -l cd /home/users/m/mi/millis/ mv daily-test.sh
daily-test.old /bin/rm -rf new/*njudge*gz /bin/rm -rf report* scp -2
millis@incoming.sourceforge.net:/home/users/m/mi/millis/*njudge*gz new ||
exit 1 cp daily-test.bu daily-test.sh |
|
|
millis@ alpha-linux1 |
04:00 PDT |
Daily-test.sh >>
report.txt 2>&1 |
#!/bin/csh echo
"------------------------------\n" >> report.ok uname -a >> report.ok date >> report.ok /bin/rm -rf judge njudge* gunzip new/njudge*tar*gz tar xf new/njudge*tar cd njudge* ./configure
--with-dir=~/judge --with-user=millis make >> ../report.txt
|| exit 1 #make install make install >>
../report.txt || exit 1 #make clean || exit 1 #make || exit 1 make clean >>
../report.txt || exit 1 make upgrade >> ../report.txt || exit 1 cd .. echo " Build
sucessful."\n" >> report.ok echo
"------------------------------\n" >> report.ok |
|
10:02 PDT |
Post-daily.sh |
#!/bin/bash #ls -l cd /home/users/m/mi/millis #scp -2
millis@incoming.sourceforge.net:/home/users/m/mi/millis/*njudge*gz new ||
/bin/rm report.* scp -2 -B report.*
incoming.sourceforge.net: |
|
|
12:30 PDT |
Pre-daily.sh |
/usr/local/bin/scp -B
millis@incoming.sourceforge.net:report.ok
/usr/local/njudge/public_html/report || exit 1 /usr/local/bin/scp -B
millis@incoming.sourceforge.net:report.txt
/usr/local/njudge/public_html/report || exit 1 /bin/rm rep.txt echo "This is an
automatic report of the latest judge code, compiled on SourceForge compile
farm." > rep.txt echo "A full report can
be consulted at http://www.diplom.org/~njudge/report/report.txt"
>> rep.txt echo "" >>
rep.txt echo "Brought to you by
Millis Miller (mailto: echo "====="
>> rep.txt cat
/usr/local/njudge/public_html/report/report.ok >> rep.txt echo "====="
>> rep.txt #mailx -s "Njudge
Compile Farm Report file" judge-maint@localhost < rep.txt cat
/usr/local/njudge/public_html/report/report.txt >> rep.txt mailx -s "Njudge
Compile Farm complete Report file" millis@faztek.org < rep.txt |
|
Hostname |
Build-Time |
Description |
|
alpha-linux1 |
04:00 PDT |
Linux usf-cf-alpha-linux-1
2.2.20 |
|
amd64-linux1 |
|
|
|
ppc-osx1 |
|
|
|
ppc-osx2 |
|
|
|
sparc-linux1 |
|
|
|
sparc-solaris1 |
|
|
|
sparc-solaris2 |
|
|
|
strongarm-linux1 |
|
|
|
x86-freebsd1 |
|
|
|
x86-linux1 |
|
|
|
x86-linux2 |
|
|
|
x86-netbsd1 |
|
|
|
x86-openbsd1 |
|
|
|
x86-solaris1 |
|
|
Millis Miller
17th September 2004