Skip to content

Commit a6af244

Browse files
committed
ci: refactor julia tests, from 5 to 4 (~5 min saved)
1 parent f1b1339 commit a6af244

File tree

23 files changed

+91
-108
lines changed

23 files changed

+91
-108
lines changed

repo2docker/buildpacks/julia/julia_project.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ def julia_version(self):
5050
compat = project_toml["compat"]["julia"]
5151
except:
5252
# Default version which needs to be manually updated with new major.minor releases
53+
#
54+
# NOTE: Updates to the default version should go hand in hand with
55+
# updates to tests/julia/project/verify where is intent to
56+
# test the version.
57+
#
58+
# FIXME: When compat = "1.6" is set below and passed to
59+
# find_semver_match, we get 1.8.2 as of 2022-10-09. We should
60+
# clarify the desired behavior and have a unit test of
61+
# find_semver_match to validate it.
62+
#
5363
compat = "1.6"
5464

5565
match = find_semver_match(compat, self.all_julias)

tests/julia/julia_version-1.0.2/README.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/julia/julia_version-default/README.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/julia/julialegacy_version-0.6.3/README.rst

Lines changed: 0 additions & 22 deletions
This file was deleted.

tests/julia/julialegacy_version-0.6.3/REQUIRE

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/julia/julialegacy_version-1.0/README.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/julia/julialegacy_version-1.0/verify

Lines changed: 0 additions & 17 deletions
This file was deleted.

tests/julia/project-1.0.2/README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Julia - Project.toml
2+
--------------------
3+
4+
Test a Project.toml file with a specified version for julia.

tests/julia/julia_version-1.0.2/verify renamed to tests/julia/project-1.0.2/verify

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env julia
2-
# Verify the version:
2+
33
if VERSION != v"1.0.2"
4+
println("Julia version should be 1.0.2")
45
exit(1)
56
end
67

0 commit comments

Comments
 (0)