-
Notifications
You must be signed in to change notification settings - Fork 168
Test create-probot-app against this template #77
base: master
Are you sure you want to change the base?
Conversation
@probot/maintainers Would ❤️to hear feedback on this approach. Test are passing, so if I'm thinking through this correctly, any PRs to the template will have to successfully scaffold an app in Travis and run that app's tests to result in a successful build. |
Keep in mind this file will be used as the template for all new Probot apps. What if we modify the way |
That would be ideal, it would also make it easier to maintain the usecase examples. Do you think that would be doable @tcbyrd ? |
Just to make sure I'm understanding correctly, the repo will be fully functional and testable but have a So for a single template, maybe something like this?
Another option is we use this repo as a single source for all our templates. This could be one way to structure that (borrowing slightly from oclif/templates)
I see pros and cons for both. I'm leaning towards multiple templates in the same repo because I tend to like how that helps with discovery in other frameworks (e.g. koa/examples) and I feel like it would easier to manage in one repo. Then in |
@tcbyrd I disabled Travis CI against this repo until this PR is merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Submitting a review to remove this from my review queue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also submitting a review to hit inbox 0 for pull reminders! I think this can probably be closed in favor of the work in probot/create-probot-app#36 which will include something similar to this
As discussed in #75, because of the handlebars template variables we use in
package.json
, the normalnpm test
command doesn't work in Travis. This PR will update the.travis.yml
file to runcreate-probot-app
in Travis, then run the tests in the cloned template. We'll need to ensure Travis scaffolds the repo from the right branch, so I'm thinking in addition to this we add a command-line flag tocreate-probot-app
that allows you to specify a branch of the template repo(which is an option available inscaffold
). We would then pass the${TRAVIS_PULL_REQUEST_BRANCH}
environment variable to this script.The goal is to ensure any changes to this template can successfully scaffold an app with all the available options and run a clean
npm test
.