bazooka-ci / bazooka

Continuous Integration and Continuous Deployment Server
http://docs.bazooka-ci.io/
MIT License
60 stars 5 forks source link

Changes of path are not persisted between phases #251

Closed julienvey closed 8 years ago

julienvey commented 9 years ago

For some projects, commands need to be run not at the root of the project, for instance, in a source directory.

A way to achieve this is to add the cd command in the before_install phase

But this change of path is not persisted

before_install:
  - cd source
  - pwd #/bazooka/source

install:
  - pwd #/bazooka
jawher commented 9 years ago

Env is not persisted neither:

install:
  - export X=42
script:
  - echo $X

X is not set in script

jawher commented 9 years ago

The question is, is this really a problem ? And is fixing this worth the complexity of the solution (capturing the working dir and env at the end of every phase and restore them in the next one) ?