using rake runner with merb and bundled dependencies?

I am trying to use the rake runner to run tests for a merb application. That application uses "bundled" dependencies.  Essentially all gems get installed into the project_root/gems directory and the project_root/bin/rake script is used to run the tests.  The bin/rake script simply modifies the Gem.path so that the dependencies are loaded from project_root/gems rather than the system gem path.

As far as I can tell, this sort of setup isn't possible with the out-of-the-box rake runner.  Any suggestions on the best way to hack something together that would delegate to the project_root/bin/rake script?

I've attached the project_root/bin/rake script for reference.



Attachment(s):
rake
2 comments
Comment actions Permalink

Hello Alex,

It seems it's possible to setup gem paths using GEM_PATH and GEM_HOME env variables instead of using patched rake script. You can specify GEM_PATH in build configuration  settings. Working or checkout directory you can get from value of %system.agent.work.dir% or %system.teamcity.build.checkoutDir% properties.

0
Comment actions Permalink

Hello Alex,

I can add some env variable which value will be used as path to custom rake runner script. Will such solution suit you?

0

Please sign in to leave a comment.