-
Notifications
You must be signed in to change notification settings - Fork 18
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
Refactor use_tic()
#193
Refactor use_tic()
#193
Conversation
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.
Thanks. This is too large for a review. I can use it the next time I need to set up a project.
Maintaining multiple .yml
templates for each CI platform seems like a nightmare in the long run. Is there any chance to generalize this?
@@ -11,7 +11,6 @@ before_install: | |||
- R -q -e 'remotes::install_local(getwd(), force = TRUE); print(tic::dsl_load()); tic::prepare_all_stages()' | |||
- R -q -e 'tic::before_install()' | |||
install: R -q -e 'tic::install()' | |||
after_install: R -q -e 'tic::after_install()' |
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.
Is this intended?
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.
This stage is not supported (anymore) by Travis. Discovered this by running the official Travis lintr.
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.
Maintaining multiple .yml templates for each CI platform seems like a nightmare in the long run. Is there any chance to generalize this?
We could trim it down to one file for "build", "deploy" and "meta" (matrix, libs) and cat them together when building the template. This way, we would only have to maintain three files at max per CI provider.
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.
Sounds good.
@@ -11,7 +11,6 @@ before_install: | |||
- R -q -e 'remotes::install_local(getwd(), force = TRUE); print(tic::dsl_load()); tic::prepare_all_stages()' | |||
- R -q -e 'tic::before_install()' | |||
install: R -q -e 'tic::install()' | |||
after_install: R -q -e 'tic::after_install()' |
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.
Sounds good.
Thanks! |
Changes
Add new templates: Asks the user what to build (single/matrix, Linux/macOS), which CI provider to use at all and if multiple R versions are desired
Update templates
move some functions to their own .R file to clean up a bit
update vignette
use the cli package (dev version) for more sophisticated cli output
removes the
after_install
stage as this stage is deprecated by Travisadds some info to the tic.R template
update badges
export
use_*_yml()
functions so that users can install yml templates withoutuse_tic()