repo2docker/tests/julia/julia_version-default/verify

26 wiersze
520 B
Plaintext
Czysty Zwykły widok Historia

2019-02-28 04:48:59 +00:00
#!/usr/bin/env julia
# Verify the version:
2019-03-05 16:40:40 +00:00
if VERSION < v"1.1.0"
exit(1)
end
2019-02-26 16:50:16 +00:00
try
# Test that the package was installed.
using IteratorInterfaceExtensions
2019-02-26 16:50:16 +00:00
# Verify that the environment variables are set correctly for julia 1.0+
@assert "julia" ∈ readdir(Sys.BINDIR)
catch
exit(1)
end
2019-03-13 16:14:05 +00:00
# Verify that kernels are not installed in home directory (issue #620)
try
using IJulia
@assert IJulia.kerneldir() == ENV["NB_PYTHON_PREFIX"] * "/share/jupyter/kernels"
2019-03-13 16:14:05 +00:00
catch
exit(1)
end
exit(0)