Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Automated Night Builds
Automated Night Builds [message #222300] Tue, 19 August 2008 09:50 Go to next message
Eclipse UserFriend
Originally posted by: alberto.ing.gmail.com

I all,

I need to set up an automated build of my projects and I would like to
understand if this is possible using CDT.

The steps that I need are:

check out the projects from cvs/svn the files
add the projects to a new workspace
compile the projects
run the cpp-unit test
pack the night build

One of the main points is that the environment must be fresh, so also the
workspace need to be created by scratch.

Can I obtain this (or part at least) using eclipse and cdt?

Thanks everyone
Re: Automated Night Builds [message #222314 is a reply to message #222300] Tue, 19 August 2008 12:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jamesblackburn+eclipse.mac.com

Alberto Ingenito wrote:
> I all,
>
> I need to set up an automated build of my projects and I would like to
> understand if this is possible using CDT.
>
> The steps that I need are:
>
> check out the projects from cvs/svn the files
> add the projects to a new workspace
> compile the projects
> run the cpp-unit test
> pack the night build
>
> One of the main points is that the environment must be fresh, so also
> the workspace need to be created by scratch.

Well you'd have to have to write a builder or custom application to
handle this. All that's currently built in is the ability to build a
pre-existing workspace.

You could almost get there by:
Manually:
- Creating the workspace & Projects in advance
Shell script:
- Remove any previous build /run artifacts
- Running cvs / svn update
Eclipse:
- Perform a headless build using the org.eclipse.jdt.apt.core.aptBuild
application in Eclipse
(which does a clean build on all projects before performing a
full build)
Shell script:
- tar up the output

> Can I obtain this (or part at least) using eclipse and cdt?

So while CDT / Eclipse can perform the build for you, the rest you'll
either have to plug in with Java or script -- I'd personally opt for the
latter unless unless you had very specific reasons for doing everything
under Eclipse?

James
Re: Automated Night Builds [message #222328 is a reply to message #222314] Tue, 19 August 2008 12:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alberto.ing.gmail.com

This mostly solves my problem.

If a workspace can be moved I can simply maintain one _template_ workspace
and copy that one each time.

I'll check this headless build stuff,

thanks a lot

Alberto
Re: Automated Night Builds [message #222359 is a reply to message #222328] Tue, 19 August 2008 13:11 Go to previous message
Eclipse UserFriend
Originally posted by: jamesblackburn+eclipse.mac.com

Alberto Ingenito wrote:
> This mostly solves my problem.
>
> If a workspace can be moved I can simply maintain one _template_
> workspace and copy that one each time.

Indeed. When setting up any workspace relative build paths, use the CDT
provided variables ${WorkspaceDirPath} & ${ProjDirPath}

James

>
> I'll check this headless build stuff,
>
> thanks a lot
>
> Alberto
>
Previous Topic:Usage of Linux 64bit
Next Topic:Developer documentation for CDT 5.0?
Goto Forum:
  


Current Time: Sun Jun 08 19:08:18 EDT 2025

Powered by FUDForum. Page generated in 0.04120 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top