Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the ability for developers to more easily track and rebuild the CommCare Analytics staging branch. At the moment it's very basic.
What's the process?
When you have a feature branch that you want to deploy to staging you should first add it to the
scripts/staging.yml
file under thebranches
section and run the command to rebuild the staging branch:Note that this will only rebuild the staging branch locally, so afterwards you need to push the staging branch and deploy CCA as we currently do - manually.
How does it work?
Dimagi maintains a pypi package called git-rebuild-branch which this PR is also using. This PR lists it as a dev dependency in the
setup.py
file, so in order to use it the developer must first runFurthermore, a
rebuildingstaging
bash script simply invokes the command, which in turns pulls thetrunk
(in this casemaster
branch) and merge all the listed feature branches into it. All this happens on your local machine of course.