JustAMartin
JustAMartin

Reputation: 13753

Git and nightly builds - how to do it efficiently?

I'm trying to create a node.js script which will run git commands to perform nightly builds. I have done some searching and found various bits here and there about shallow clones, reference caches, cloning one branch only etc. but I can't find any place or example for all that combined together to achieve efficient build system.

Here is the required workflow in my imagination:

Currently I intend to use TeamCity running on Azure VM. Git repo is on my local server. I'm not sure if I'll stay with this setup, therefore I'd like to perform most steps in node.js scripts to be platform / build system agnostic.

Is this workflow feasible or might lead to problems? Also, should I / can I speed it up with cache (git clone --reference) or is it redundant for my case?

Upvotes: 3

Views: 1102

Answers (0)

Related Questions