chkbuild

chkbuild ???????????????????????????????????? ?????????????? HTML ????????????????????????

????

???? ?? <[email protected]>

????

  • timeout ??????????????

    ?????????????????????????????????? kill ???????? ????????????????????????????????????????????????????????????????????????????

  • backtrace ??????????????????

    ???????????? core ???????????????????????????? gdb ?????????? backtrace ??????????????

  • ???????????????????? gzip ????????????

  • ?????????????? diff ???????????? ?????????????????????????????????????????????????????????????????????????????? diff ???????????????? ??????????????????????????????????????????????????????????????

  • cvs, svn ????????????????????????ViewVC ?????? diff ??????????????????????????

  • ????????????????????????????????????????????????????????????????????????????????????????

???????????????????????????????????? ruby ????????????????????????????

% cd $HOME
% cvs -d :pserver:[email protected]:/cvs/ruby co chkbuild
% cd chkbuild
% ruby start-build

% w3m tmp/public_html/ruby-trunk/summary.html 
% w3m tmp/public_html/ruby-trunk-pth/summary.html 
% w3m tmp/public_html/ruby-1.8/summary.html 
% w3m tmp/public_html/ruby-1.8-pth/summary.html 

% rm -rf tmp

??????????????????????????????????????????????
?????? cron ??????????????????????????????????????????

????

???????????????????????????????? foo ???? /home/foo/chkbuild ?? chkbuild ???????????????????????????? ????????????????????????????????????????????????????????

(1) chkbuild ????????????????????

% cd /home/foo
% cvs -d :pserver:[email protected]:/cvs/ruby co chkbuild

(2) chkbuild ??????

?????????????????????????? sample ????????????????????????????
????????????????????????
??????start-build ????????????????????????????????????

  % cd chkbuild
  % vi sample/build-ruby
  % vi start-build

????????????????????????????????????????

????????????????????????????ruby start-build ??????????????????????
Ruby ?? main trunk ?? ruby_1_8 branch ??
???????? --enable-pthread ??????????????????????
??4?????? /home/foo/chkbuild/tmp ????????????????????

foo ???????????????????????????? chkbuild ??????????????????????????????????????
??????????????????????????????

  % rm -rf tmp

(3) chkbuild ????????????

chkbuild ????????????????????????????????????????
??????????????????????????????????????????????????????????????????????
??????chkbuild ?????????? foo ????????????
????????????????????????????????????????????????????????????????
chkbuild ???????????? build, public_html ????????????????????????????????????

  /home/chkbuild              user=foo group=chkbuild mode=2750
  /home/chkbuild/build        user=foo group=chkbuild mode=2775
  /home/chkbuild/public_html  user=foo group=chkbuild mode=2775

  % su
  # adduser --disabled-login --no-create-home --shell /home/foo/chkbuild/start-build chkbuild
  # usermod -G ...,chkbuild foo
  # cd /home
  # mkdir chkbuild
  # chown foo:chkbuild chkbuild
  # chmod 2750 chkbuild
  # su foo
  % cd chkbuild
  % mkdir build public_html
  % chgrp chkbuild build public_html
  % chmod 2775 build public_html
  % exit
  # exit

(4) ??????????????????????

  % ln -s /home/chkbuild tmp

?????????????????????? /home/chkbuild ????????????????????????????????????
??????????????????????????????????????

(6) ??????????????

  # vi /etc/crontab

?????????????????? 3??33???????????????? /etc/crontab ????????????????????????

  33 3 * * * root cd /home/foo/chkbuild; su chkbuild

su chkbuild ????????chkbuild ????????????????????????????????????
/home/foo/chkbuild/start-build ??????????????

(7) ????????????????

Ruby ????????????????????????Ruby hotlinks ????????????????????????????????

http://www.rubyist.net/~kazu/samidare/latest

????

chkbuild ??????????Ruby ???????????????? ??????????????chkbuild ???????? chkbuild.rb ?????? Ruby ???????????????????? chkbuild.rb ????????????????????????????????????????????????????

????????????

chkbuild ????????cvs/svn/git ?????????????????????????????????????????????????????? ?????????????????????????? ??????????????????????????????????????????????????

?????????????????????????????????????????? ??????????????????????????????????????????????????????????????????????????????????

?????????????????????????????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????????????????????????????????????? ??????????????????????????????????????????????

??????????chkbuild ???????????????????????????????? ????????????????????????????????????????????????????????????????

???? chkbuild ??????????????????????????????????????????chkbuild ?????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????????????? ????????????????????????????root ??????????????????

?????????????????????????????????????? xen, chroot, jail, user mode linux, VMware, ... ????????????????????????????????????????????

TODO

  • index.html ??????????

LICENSE

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
   derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

(The modified BSD license)