-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move contributing and developer docs to recommended
These files are overkill for a minimal case. They can, in the future, come back as simpler versions on the minimal case. However, thinking about, for instance, a solo dev kickstarting the package and using the minimal (so no formatter, no issue templates, no linting), it won't make sense to have all these guidelines in place. Closes #313 Breaking change: If you have are using the minimal version, this will remove the files docs/src/90-contributing.md and docs/src/91-developer.md.
- Loading branch information
1 parent
d05e649
commit 5742796
Showing
11 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ template_options = Dict( | |
"AddMacToCI" => true, | ||
"AddWinToCI" => true, | ||
"RunJuliaNightlyOnCI" => true, | ||
"SimplifiedPRTest" => true, | ||
"AddContributionDocs" => true, | ||
"UseCirrusCI" => false, | ||
"AddPrecommit" => true, | ||
"AddGitHubTemplates" => true, | ||
|
@@ -141,27 +141,33 @@ end | |
|
||
@testset "Test that BestieTemplate.generate warns and exits for existing copy" begin | ||
mktempdir(TMPDIR; prefix = "cli_") do dir_copier_cli | ||
run(`copier copy --quiet $bash_args $template_url $dir_copier_cli`) | ||
run(`copier copy --vcs-ref HEAD --quiet $bash_args $template_url $dir_copier_cli`) | ||
|
||
@test_logs (:warn,) BestieTemplate.generate(dir_copier_cli; quiet = true) | ||
end | ||
end | ||
|
||
@testset "Testing copy, recopy and rebase" begin | ||
mktempdir(TMPDIR; prefix = "cli_") do dir_copier_cli | ||
run(`copier copy --quiet $bash_args $template_path $dir_copier_cli`) | ||
run(`copier copy --vcs-ref HEAD --quiet $bash_args $template_path $dir_copier_cli`) | ||
|
||
@testset "Compare copied project vs copier CLI baseline" begin | ||
mktempdir(TMPDIR; prefix = "copy_") do tmpdir | ||
BestieTemplate.Copier.copy(tmpdir, template_options; quiet = true) | ||
BestieTemplate.Copier.copy(tmpdir, template_options; quiet = true, vcs_ref = "HEAD") | ||
test_diff_dir(tmpdir, dir_copier_cli) | ||
end | ||
end | ||
|
||
@testset "Compare recopied project vs copier CLI baseline" begin | ||
mktempdir(TMPDIR; prefix = "recopy_") do tmpdir | ||
run(`copier copy --defaults --quiet $min_bash_args $template_path $tmpdir`) | ||
BestieTemplate.Copier.recopy(tmpdir, template_options; quiet = true, overwrite = true) | ||
run(`copier copy --vcs-ref HEAD --defaults --quiet $min_bash_args $template_path $tmpdir`) | ||
BestieTemplate.Copier.recopy( | ||
tmpdir, | ||
template_options; | ||
quiet = true, | ||
overwrite = true, | ||
vcs_ref = "HEAD", | ||
) | ||
test_diff_dir(tmpdir, dir_copier_cli) | ||
end | ||
end | ||
|
@@ -176,7 +182,13 @@ end | |
run(`git config user.email "[email protected]"`) | ||
run(`git commit -q -m "First commit"`) | ||
end | ||
BestieTemplate.Copier.update(tmpdir, template_options; overwrite = true, quiet = true) | ||
BestieTemplate.Copier.update( | ||
tmpdir, | ||
template_options; | ||
overwrite = true, | ||
quiet = true, | ||
vcs_ref = "HEAD", | ||
) | ||
test_diff_dir(tmpdir, dir_copier_cli) | ||
end | ||
end | ||
|