Re: [integrity] [Integrity] Git caching and cleaning up builds
- From:
- Simon Rozet
- Date:
- 2010-03-17 @ 00:23
On Tue, Mar 16, 2010 at 7:37 AM, Joel Chippindale
<joel.chippindale@gmail.com> wrote:
> There are a couple of features that I think I could do with for my
> installation of integrity and just wanted to check whether anyone
> had already started or completed work on either of these in their own
> fork before implementing them myself.
>
> 1. Local caching of git repo's to speed up the check out process of
> project builds
I'd love to see some caching strategy implemented. There used to be
one but IIRC, it had issues regarding parallel builds.
http://github.com/integrity/bob/commit/97e2c5407530f8a45cfce78a4d74ccd5714d574
> 2. "Keep up to n builds of a project" option to stop the integrity
> build folder growing indefinitely as you build more and more versions
> of a project (this is already listed at
> http://github.com/integrity/integrity/issues/#issue/22)
I've been using this rake task for a while. I'll merge it in if it
looks good to you.
desc "Clean-up build directory"
task :cleanup do
require "init"
Integrity::Build.all(:completed_at.not => nil).each { |build|
dir = Integrity.directory.join(build.id.to_s)
dir.rmtree if dir.directory?
}
end
--
github.com/sr