Skip to content

Commit

Permalink
Merge pull request #12 from oscar-system/enh/matchingininclude
Browse files Browse the repository at this point in the history
enh: allow '<matching>' in include statements
benlorenz authored Mar 22, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 6e44116 + 709aab4 commit 6aa52da
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OscarDevTools"
uuid = "4f01c588-2833-446a-9dbd-6331d80acb41"
authors = ["Benjamin Lorenz <[email protected]>"]
version = "0.2.1"
version = "0.2.2"

[deps]
GitHub = "bc5e4493-9b4d-5f90-b8aa-2b2bcaad7a26"
6 changes: 5 additions & 1 deletion src/OscarCI.jl
Original file line number Diff line number Diff line change
@@ -191,7 +191,7 @@ function ci_matrix(meta::Dict{String,Any}; pr=0, fork=nothing, active_repo=nothi
push!(namestr_branches,"$pkgname#$pkg_branch")
if !isnothing(pkg_fork)
branchdicts[end]["pkgs"][pkgname]["branch"] = "$url#$pkg_branch"
namestr_branches[end] = "$pkgname#$pkg_fork#$pkg_branch"
namestr_branches[end] = "$pkgname@$pkg_fork#$pkg_branch"
branchfound = true
elseif pkg_branch != "master"
branchdicts[end]["pkgs"][pkgname]["branch"] = "$pkg_branch"
@@ -222,6 +222,10 @@ function ci_matrix(meta::Dict{String,Any}; pr=0, fork=nothing, active_repo=nothi
if key in ("os","julia-version")
named_include[key] = val
else
if val == "<matching>"
(url, branch, _) = find_branch(key, pr_branch; fork=fork)
val = "$url#$branch"
end
named_include[key] = Dict{String,Any}(
"name" => "$(pkg_parsebranch(key,val)[3])",
"branch" => val
7 changes: 4 additions & 3 deletions test/meta/OscarCI.toml
Original file line number Diff line number Diff line change
@@ -16,17 +16,18 @@ title = "metadata for oscar CI run"
testoptions = []

[pkgs.Singular]
test = false
branches = []
test = true
testoptions = []

[pkgs.Polymake]
branches = [ "master" ]
branches = [ "release" ]
test = false
testoptions = []

[include]
[include.macos]
Nemo = "master"
Singular = "<matching>"
os = "macos-latest"
julia-version = "~1.6.0-0"

2 comments on commit 6aa52da

@benlorenz
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/32587

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.2 -m "<description of version>" 6aa52dadcb4034959074266e7d9eab4deff36e58
git push origin v0.2.2

Please sign in to comment.