FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 11-17-2008, 05:32 PM
"Shawn O'Shea"
 
Default OT - Automated rpm builds

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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-17-2008, 08:14 PM
R P Herrold
 
Default OT - Automated rpm builds

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@centos-5 ta-lib]$ co -l README
RCS/README,v --> README
revision 1.3 (locked)
done
[herrold@centos-5 ta-lib]$ sudo scp README
mailhub.owlriver.net:/var/ftp/pub/local/ORC/ta-lib/
[sudo] password for herrold:
root@mailhub.owlriver.net's password:
README 100% 2773
2.7KB/s 00:00

[herrold@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

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-17-2008, 10:39 PM
"Michael J. Carter"
 
Default OT - Automated rpm builds

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@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@centos.org

http://lists.centos.org/mailman/listinfo/centos



--
Michael J. Carter
mcarter@pobox.com

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-18-2008, 01:04 PM
Tom Brown
 
Default OT - Automated rpm builds

http://www.autobuild.org reports to support Perforce. I've only used
it w/ svn.




thanks to all those that replied - a few options to work on there

thanks
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 02:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org