Closed sebastianzillessen closed 3 years ago
What do you think of doing RAILS_ENV=test bundle exec teaspoon
?
Well, that would work but it would as well require, that I do this on all CI instances for all projects... 😄 Thats why I thought of a solution that I can check in into my central teaspoon_config.rb
and then apply it automatically to all projects.
Is that somehow possible?
It depends on how you’re running teaspoon on CI. Via the CLI I believe you can put RAILS_ENV=test
in your env. if you’re running rake, the rails app has already been started by the time teaspoon env is executed, so… with rake, you must set the environment variable before executing rake, with the CLI you can probably put it in your teaspoon_env.rb
.
On Jul 18, 2016, at 10:20 AM, Sebastian Zillessen notifications@github.com wrote:
Well, that would work but it would as well require, that I do this on all CI instances for all projects... 😄 Thats why I thought of a solution that I can check in into my central teaspoon_config.rb and then apply it automatically to all projects.
Is that somehow possible?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/modeset/teaspoon/issues/495#issuecomment-233379269, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA1xf6PYvW1xCeFNc_SqA2twu2Yn7Llks5qW6eygaJpZM4JMMsi.
Ok, I'll give this a try.
Hi,
for some reasons of my project architecture I would like to set the environment in which teaspoon gets executed on jenkins (from the CLI) to
test
instead ofdevelopment
unfortunately I could not find this option anywhere.How can I configure teaspoon to do this for all executions? (Preferable in the
teaspoon_config.rb
)Thanks!
Sebastian