by DCoder · 15y ago · 0 comments
I've seen this before, but never found a suitable alternative. Where does it belong? Suppose multiple developers are compiling a C++ .dll which testers are grabbing through websvn and testing. To track down crashes they get, we need the associated .pdb for the right revision. Where should these files be kept? In a plain folder where each revision gets its own subfolder named as the revision number? That means updating two separate locations with each build, using two different interfaces...
The DLL is a compilation output, it's not to be in source control.
> To track down crashes they get, we need the associated .pdb for the right revision. Where should these files be kept?
To track down crashes they need the DLL to start with.
Testers should either have the ability to build the project on their machine, or they should be able to grab the output from the CI server (just go to the CI server, open the latest correct (compiled, tested, green) revision, grab files from there and test that.
Mmm... I've been working in a medium-sized group project, and we've been having pretty good luck with source controlling our driver .lib file. The intermediate object files are discarded, but it's really nice not needing to recompile the library every time somebody updates the library code.
(This is a 'project' that produces a library rather than an executable, for inclusion into other 'projects')
Yes. Although revision number naming would be problematic if youre using git as it uses SHA1s to identify revisions, naming them with date.branch.author.sha1 might be better.
That means updating two separate locations with each build, using two different interfaces...
It just means having your VCS do the build and create the directory in a post-commit script.
Or you could just actually get a real CI system.
In my company we setup the following workflow :
-> commit code
-> code is built and tested using Jenkins
-> generated artifacts are stored on Nexus
On top of that, daily we deploy everything on an internal pypi (we do mostly Python). Deploying the code in production is then not much more than running a script that easy_install everything from this internal pypi...
[edit] typo
That, yes.
What's the point of versioning a build? After it's built, it will never change. Back it up, of course. But don't version it.
Automate your build and let it do the checking-out, compiling, testing, tagging, copying, emailing and what not, for all eternity.