Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move build steps into a shell script #67

Closed
chrismytton opened this issue Feb 10, 2017 · 0 comments
Closed

Move build steps into a shell script #67

chrismytton opened this issue Feb 10, 2017 · 0 comments
Assignees
Milestone

Comments

@chrismytton
Copy link
Contributor

Problem

We're trying to run multiple external commands in Ruby, which is awkward and means we have to perform lots of logic capturing output and checking exit statuses. This is an error-prone process and is basically trying to do something in Ruby which is trivial in shell script.

Proposed solution

Move the build steps, (obtaining and setting up the everypolitician-data repo, performing the build and pushing the result to a branch), into a shell script and then call that script from the RebuilderJob#perform method. This will reduce the amount of external commands we call and as a bonus means that any non-build errors, e.g. with bundle install, will get sent to Rollbar.

Related issues

This should also help us fix the following issues:

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

No branches or pull requests

1 participant