perl+jenkinsでCI @ CentOS

http://jenkins-ci.org/

まずはinstall

% sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
% sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
% sudo yum install jenkins

ビルドの設定

export HOME=/root
source /root/perl5/perlbrew/etc/bashrc
cpanm --installdeps .
prove -lv --harness TAP::Harness::JUnit t/

あと、アウトプットにjunit_output.xmlを指定する。
あらかじめ依存モジュールをMakefile.PLに書いておき、--installdepsすることでモジュールのインストール漏れを防げる。

ざっくりメモ。
あとTDDというか、テスト周りもメモる予定。