ZopaPublic / bozo

Build scripting framework
MIT License
5 stars 1 forks source link

Granular hook for each compiler/test #1

Open lukesmith opened 12 years ago

lukesmith commented 12 years ago

Along with the pre/post compile/test hooks.

Having pre/post hooks for each specific compiler could be helpful. For example in notifying TeamCity that compilations have been started for specific compilers

For tests it would allow pushing reports sooner after each specific test runner.

gshutler commented 12 years ago

What do you think this would look like within the hooks?

def pre_compile
  puts 'before all compilers'
end

def pre_compiler(name)
  puts "before compiler #{name}"
end

def post_compiler(name)
  puts "after compiler #{name}"
end

def post_compile
  puts 'after all compilers'
end

Something along those lines looks ok but I'm a bit wary of adding complexity for the needs of a specific build server. TeamCity can be set up to look for test reports and seems to do that continuously without the need to prompt it. Also, the case of having several compilers, particularly long running ones where this would be useful, doesn't feel like it would be common.

lukesmith commented 12 years ago

That looks good to me.

The reason I was wanting the bozo teamcity script to notify teamcity of reports was so zero configuration for artifacts and reports had to be made to teamcity apart from creating the buildstep.