Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Granular hook for each compiler/test #1

Open
lukesmith opened this issue Dec 19, 2011 · 2 comments
Open

Granular hook for each compiler/test #1

lukesmith opened this issue Dec 19, 2011 · 2 comments

Comments

@lukesmith
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants