Split Julia test into two

Julia 0.7+ changes the package manager to now have unexpected output (which borks our hello-world test as-is).
This commit is contained in:
Tianon Gravi 2018-07-27 13:20:07 -07:00
parent a4fd877c52
commit cb1953b43a
4 changed files with 13 additions and 7 deletions

View File

@ -103,6 +103,7 @@ imageTests+=(
'
[julia]='
julia-hello-world
julia-downloads
'
[logstash]='
logstash-basics

View File

@ -0,0 +1,10 @@
# https://github.com/docker-library/julia/pull/6
download("https://google.com")
# https://github.com/docker-library/julia/pull/9
if VERSION.major > 0 || (VERSION.major == 0 && VERSION.minor >= 7)
# https://github.com/docker-library/julia/pull/21
# https://github.com/JuliaLang/julia/tree/v0.7.0-beta2/stdlib/Pkg
using Pkg
end
Pkg.add("JSON")

View File

@ -0,0 +1 @@
../run-julia-in-container.sh

View File

@ -1,7 +1 @@
println("Hello World!");
# https://github.com/docker-library/julia/pull/6
download("https://google.com");
# https://github.com/docker-library/julia/pull/9
Pkg.add("JSON");
println("Hello World!")