Skip to content

Commit

Permalink
ci: refactor julia tests, from 5 to 4 (~5 min saved)
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Oct 9, 2022
1 parent 7eeb9c1 commit 7573682
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 76 deletions.
4 changes: 4 additions & 0 deletions repo2docker/buildpacks/julia/julia_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def julia_version(self):
compat = project_toml["compat"]["julia"]
except:
# Default version which needs to be manually updated with new major.minor releases
#
# NOTE: Updates to the default version should go hand in hand with
# updates to tests/julia/project-unspecified/verify.
#
compat = "1.6"

match = find_semver_match(compat, self.all_julias)
Expand Down
4 changes: 0 additions & 4 deletions tests/julia/julia_version-1.0.2/README.rst

This file was deleted.

2 changes: 0 additions & 2 deletions tests/julia/julia_version-default/Project.toml

This file was deleted.

4 changes: 0 additions & 4 deletions tests/julia/julia_version-default/README.rst

This file was deleted.

22 changes: 0 additions & 22 deletions tests/julia/julialegacy_version-0.6.3/README.rst

This file was deleted.

5 changes: 0 additions & 5 deletions tests/julia/julialegacy_version-1.0/README.rst

This file was deleted.

4 changes: 0 additions & 4 deletions tests/julia/julialegacy_version-1.0/REQUIRE

This file was deleted.

17 changes: 0 additions & 17 deletions tests/julia/julialegacy_version-1.0/verify

This file was deleted.

File renamed without changes.
4 changes: 4 additions & 0 deletions tests/julia/project-1.0.2/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Julia - Project.toml
--------------------

Test a Project.toml file with a specified version for julia.
File renamed without changes.
Empty file.
5 changes: 5 additions & 0 deletions tests/julia/project-unspecified/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Julia - Project.toml
--------------------

Test a Project.toml file for julia, using the repo2docker default version of
julia as specified in ``julia_project.py``.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env julia
# Verify the version:
if VERSION < v"1.1.0"
if VERSION > v"1.6.0"
exit(1)
end

Expand Down
17 changes: 0 additions & 17 deletions tests/julia/pyplot-requirements/README.rst

This file was deleted.

5 changes: 5 additions & 0 deletions tests/julia/require-0.6.3/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Julia - REQUIRE
---------------

Starting with julia v0.7 and up, the package manager has changed, so this tests
that the julia version below that can be installed correctly.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions tests/julia/require-requirements/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Julia - REQUIRE
---------------

Note that this example also specifies Python dependencies with an
``requirements.txt`` file.
File renamed without changes.
File renamed without changes.

0 comments on commit 7573682

Please sign in to comment.