Эх сурвалжийг харах

Merge pull request #4645 from infosiftr/julia-0.7

Split Julia test into two
yosifkit 7 жил өмнө
parent
commit
c17f01283b

+ 1 - 0
test/config.sh

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

+ 10 - 0
test/tests/julia-downloads/container.jl

@@ -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")

+ 1 - 0
test/tests/julia-downloads/run.sh

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

+ 1 - 7
test/tests/julia-hello-world/container.jl

@@ -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!")