repo2docker/tests/julia/julia_version-default/verify

21 wiersze
347 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-28 05:06:42 +00:00
using Pkg
2019-03-02 06:12:29 +00:00
pkg"activate ."
2019-02-28 04:48:59 +00:00
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
exit(0)