Link to home
Start Free TrialLog in
Avatar of Looking_4_Answers
Looking_4_Answers

asked on

Delphi 7 & Auto build

Is there a way to configure a server machine to do Auto builds using delphi 7?

Where  one does not have to bring up a copy of delphi 7 and go through the motions in the IDE to do the build.

We have an application which requires many thirdparty components, classes, etc. We have our system set up to do the builds through the IDE currently.

When ever we do core code changes (whch is most of the time) to the app that does not require changes to any thirdparty components or libraries, we would like an auto build to occur at a scheduled time (every evening).

Users would be promoting code up to the location and the build would happen automatically.

Is this possible?  How?  What are the pros/cons?  What should be the concerns?

Thanks
Avatar of 8080_Diver
8080_Diver
Flag of United States of America image

I am trying to figure out the methodology that you are proposing.  The primary issue that I would be very concerned about is that, using your proposed methodology, you would have the source code on the Production Server . . . which, IMHO, is not a Good Idea for so many reasons.

What I think you need to consider is putting the 3rd party components/classes/etc. in a separate folder and including that folder's path in the Search Paths for your various developers (which I am hoping you mean rather than actual "Users").  Then, rather than promoting the source code to the Production server, you would promote a compiled executable.

If your source code is on a production server, there is a greater potential for someone to gain access to it than if you have it in your development environment.  In general, though, it is not a Best Practice to have your source code exposed in this manner.  Among other things, the executable should be tested  in a QA environment to establish whether any changes may cause issues with existing functionalities.  If you then recompile the executable on the production server, that executable is not the same one that was tested in the QA (or Test, for that matter) environment and that invalidates the QA testing.
ASKER CERTIFIED SOLUTION
Avatar of jimyX
jimyX

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Bad idea

As 8080_Diver said, code needs to go through QA.
Every code we write has a potential of breaking other parts of the system regardless of how good or great we are.

But if you want to experiment, you could use command line compiling (DCC32.EXE), just create a scheduled task in windows calling the compiler and pass your project as the parameter.
Avatar of Looking_4_Answers
Looking_4_Answers

ASKER

i should rephrase my wording (server may have been misleading)

our code goes through a qa system and through accurev, and is then pushed to the auto build (same machine, different location) we want to create.

we would initially set the auto build machine up and build the code manually, but then would want to automate it from there on after.

I kno i can use the DCC32.exe, but that doesn't answer my questions above

thanks
The fact that your code goes through QA and then you push it to your autobuild server still makes the QA step void.  The executable that results from the autobuild process will not be the same executable that you ran through QA.  You can say that it is all you want to but the fact that there is a recompile process on your autobuild server means that there is an opportunity for the executable to be radically different but, in any case, it is not the same as moving the executable that was used in the QA process.