-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into getproperty
- Loading branch information
Showing
13 changed files
with
525 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@static if Base.VERSION >= v"1.6" | ||
using TOML | ||
using Test | ||
else | ||
using Pkg: TOML | ||
using Test | ||
end | ||
|
||
# To generate the new UUID, we simply modify the first character of the original UUID | ||
const original_uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce" | ||
const new_uuid = "fa8e919c-243c-51af-8825-aaa63cd721ce" | ||
|
||
# `@__DIR__` is the `.ci/` folder. | ||
# Therefore, `dirname(@__DIR__)` is the repository root. | ||
const project_filename = joinpath(dirname(@__DIR__), "Project.toml") | ||
|
||
@testset "Test that the UUID is unchanged" begin | ||
project_dict = TOML.parsefile(project_filename) | ||
@test project_dict["uuid"] == original_uuid | ||
end | ||
|
||
write( | ||
project_filename, | ||
replace( | ||
read(project_filename, String), | ||
r"uuid = .*?\n" => "uuid = \"$(new_uuid)\"\n", | ||
), | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Manifest.toml |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
|
||
[compat] | ||
Documenter = "~0.27" |
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
Oops, something went wrong.