Hi Currently devs check code into perforce and we have to checkout > package > update repo > deploy I know this could be scripted but are there any tools out there that can take code from a repository and build rpm's in a continuous integration type manner? I have been hunting around for such a tool and so far not seeing anything obvious as i dont want to reinvent the wheel if at all possible. thanks
On Mon, 2008-11-17 at 17:16 +0000, Tom Brown wrote:> Currently devs check code into perforce and we have to checkout > > package > update repo > deploy > > I know this could be scripted but are there any tools out there that can > take code from a repository and build rpm's in a continuous integration > type manner? I have been hunting around for such a tool and so far not > seeing anything obvious as i dont want to reinvent the wheel if at all > possible.There's koji, but you'd have to implement Perforce support yourself. http://koji.fedorahosted.org/ -- Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> PLEASE don't CC me; I'm already subscribed -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20081117/c5ba86d6/attachment-0003.sig>
Tom Brown wrote:> I know this could be scripted but are there any tools out there that can > take code from a repository and build rpm's in a continuous integration > type manner? I have been hunting around for such a tool and so far not > seeing anything obvious as i dont want to reinvent the wheel if at all > possible.Take a look at the PLD buildsystem, they have autobuilds from checkins and pre-build/post-build testing capability, as well as once-build testing, which is easily plugged into CruiseControl or anything such. - KB
Tom Brown wrote:> Hi > > Currently devs check code into perforce and we have to checkout > > package > update repo > deploy > > I know this could be scripted but are there any tools out there that can > take code from a repository and build rpm's in a continuous integration > type manner? I have been hunting around for such a tool and so far not > seeing anything obvious as i dont want to reinvent the wheel if at all > possible.I'm currently using Apache Ant to do my CVS checkouts and RPM builds. It has task support for Perforce as well. There's a good O'Reilly book on Ant (Ant: The Definitive Guide). I'm looking into moving to the Hudson continuous integration server. It also supports Perforce and can call ant scripts to perform actual builds. Apache Ant http://ant.apache.org/ Ant Manual http://ant.apache.org/manual/ Docs on the Ant RPM task http://ant.apache.org/manual/OptionalTasks/rpm.html Docs on the Ant Perforce tasks http://ant.apache.org/manual/OptionalTasks/perforce.html Ant: The Definitive Guide 2nd Edition http://oreilly.com/catalog/9780596006099/index.html Hudson CI server https://hudson.dev.java.net/ Hudson Perforce plugin http://hudson.gotdns.com/wiki/display/HUDSON/Perforce+Plugin -Shawn
On Mon, 17 Nov 2008, Tom Brown wrote:> Currently devs check code into perforce and we have to checkout > package > > update repo > deploy > > I know this could be scripted but are there any tools out > there that can take code from a repository and build rpm's > in a continuous integration type manner? I have been hunting > around for such a tool and so far not seeing anything > obvious as i dont want to reinvent the wheel if at all > possible.I think you mean: pull from VCS -> date versioned tarball -> postioned to: ~/rpmbuild/SOURCES/ spec file generation -> rpmbuild -ba specfile yielding: Wrote: /home/herrold/rpmbuild/SRPMS/ta-lib-0.0.20081117.cvs-1.src.rpm Wrote: /home/herrold/rpmbuild/RPMS/x86_64/ta-lib-0.0.20081117.cvs-1.x86_64.rpm Wrote: /home/herrold/rpmbuild/RPMS/x86_64/ta-lib-debuginfo-0.0.20081117.cvs-1.x86_64.rpm I just pushed an update of just such a script which works against a project at SourceForge (I see I have some rot against upstream's tests which I need to look into) see: ftp://ftp.owlriver.com/pub/mirror/ORC/ta-lib/README which does this: [herrold at centos-5 ta-lib]$ co -l README RCS/README,v --> README revision 1.3 (locked) done [herrold at centos-5 ta-lib]$ sudo scp README \ mailhub.owlriver.net:/var/ftp/pub/local/ORC/ta-lib/ [sudo] password for herrold: root at mailhub.owlriver.net's password: README 100% 2773 2.7KB/s 00:00 [herrold at centos-5 ta-lib]$ ./README Checked out revision 660. Checked out revision 660. Starting scripts display indicator test ... summarized 201 prior should be 502 lines first backtest example: (.... time passes ...) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/ta-lib-0.0.20081117.cvs.root Wrote: /home/herrold/rpmbuild/SRPMS/ta-lib-0.0.20081117.cvs-1.src.rpm Wrote: /home/herrold/rpmbuild/RPMS/x86_64/ta-lib-0.0.20081117.cvs-1.x86_64.rpm Wrote: /home/herrold/rpmbuild/RPMS/x86_64/ta-lib-debuginfo-0.0.20081117.cvs-1.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.1771 ... -- Russ herrold
http://www.autobuild.org reports to support Perforce. I've only used it w/ svn. mjc On Mon, Nov 17, 2008 at 10:16 AM, Tom Brown <tom at ng23.net> wrote:> Hi > > Currently devs check code into perforce and we have to checkout > package > > update repo > deploy > > I know this could be scripted but are there any tools out there that can > take code from a repository and build rpm's in a continuous integration type > manner? I have been hunting around for such a tool and so far not seeing > anything obvious as i dont want to reinvent the wheel if at all possible. > > thanks > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- Michael J. Carter mcarter at pobox.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20081117/3f383528/attachment-0003.html>