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

Bootstrap a buildpack with hatchet init #123

Merged
merged 1 commit into from
Sep 14, 2020
Merged

Bootstrap a buildpack with hatchet init #123

merged 1 commit into from
Sep 14, 2020

Conversation

schneems
Copy link
Contributor

@schneems schneems commented Sep 9, 2020

To make adding Hatchet tests to an existing project easier and faster I've created a $ hatchet init command.

This will generate:

  • Gemfile
  • hatchet.json
  • spec/spec_helper.rb
  • spec/hatchet/buildpack_spec.rb
  • .circleci/config.yml
  • .github/dependabot.yml
  • .gitignore

Then run bundle install and hatchet install. Once this is done then you can start writing tests using Hatchet.

To make adding Hatchet tests to an existing project easier and faster I've created a `$ hatchet init` command.

This will generate:

- Gemfile
- hatchet.json
- spec/spec_helper.rb
- spec/hatchet/buildpack_spec.rb
- .circleci/config.yml
- .github/dependabot.yml
- .gitignore

Then run `bundle install` and `hatchet install`. Once this is done then you can start writing tests using Hatchet.
@schneems
Copy link
Contributor Author

schneems commented Sep 9, 2020

PR generated from this feature heroku/heroku-buildpack-activestorage-preview#19

@hone
Copy link
Member

hone commented Sep 11, 2020

I wonder if we should make a Hatchet Circle CI orb as a next step instead of injecting the same code in every buildpack. We did this with pack.

@schneems
Copy link
Contributor Author

I would love to make an orb. I would also love to cache the heroku CLI as it takes a long time to download.

@schneems schneems merged commit 0924a36 into main Sep 14, 2020
@schneems schneems deleted the schneems/init branch September 14, 2020 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants