repo2docker/tests/julia/julialegacy_version-1/verify

18 wiersze
314 B
Julia
Executable File

#!/usr/bin/env julia
# Verify the version:
if VERSION < v"1" || VERSION >= v"2"
exit(1)
end
try
# Test that the package was installed.
using Compat
# Verify that the environment variables are set correctly for julia 1.0+
@assert "julia" readdir(Sys.BINDIR)
catch
exit(1)
end
exit(0)