Skip to content

Commit

Permalink
Merge pull request #61 from PumasAI/mh/bundle-1.11
Browse files Browse the repository at this point in the history
Add a 1.11 bundle to the tests
  • Loading branch information
MichaelHatherly authored Nov 6, 2024
2 parents f6ec3c5 + dcf496c commit 56e0365
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/serializer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function _stripcode(
cd(@__DIR__) do
pkgid = Base.PkgId(Base.UUID("9e88b42a-f829-5b0c-bbe9-9e923198166b"), "Serialization")
buffer = seekstart(IOBuffer(xor.(read(\"$(basename(jls))\"), $(repr(xorshift)))))
for x in Base.require(pkgid).deserialize(buffer).args
for x in Base.invokelatest(Base.require(pkgid).deserialize, buffer).args
Core.eval(@__MODULE__, x)
end
end
Expand Down
2 changes: 2 additions & 0 deletions test/PackageBundler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ environments = [
"environments/1.9/Bundle@0.2.0",
"environments/1.10/Bundle@0.1.0",
"environments/1.10/Bundle@0.2.0",
"environments/1.11/Bundle@0.1.0",
"environments/1.11/Bundle@0.2.0",
]
outputs = [
"build/LocalCustomRegistry",
Expand Down
6 changes: 6 additions & 0 deletions test/environments/1.11/Bundle@0.1.0/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[deps]
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
TestPackage = "8346427c-08d3-4941-a1ec-6285c85e2ad6"

[compat]
TestPackage = "= 0.1.0"
6 changes: 6 additions & 0 deletions test/environments/1.11/Bundle@0.2.0/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[deps]
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
TestPackage = "8346427c-08d3-4941-a1ec-6285c85e2ad6"

[compat]
TestPackage = "= 0.2.0"
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ end
count += 1
end
end
@test count == 4
@test count == 6
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/verify.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ import TOML
count += 1
end
end
@test count == 4
@test count == 6
end

0 comments on commit 56e0365

Please sign in to comment.