Browse Source

Merge pull request #2478 from andyli/haxe

Add haxe images
Tianon Gravi 8 years ago
parent
commit
a70b07ffc2

+ 35 - 0
library/haxe

@@ -0,0 +1,35 @@
+Maintainers: Andy Li <[email protected]> (@andyli)
+GitRepo: https://github.com/HaxeFoundation/docker-library-haxe.git
+
+Tags: 3.1.3, 3.1
+GitCommit: f7115fe92fa20ad354904646b50a5265bd8e8ad5
+Directory: 3.1
+
+Tags: 3.1.3-onbuild, 3.1-onbuild
+GitCommit: e0f9cb5a3cc190acd42565113e3380b5853f5746
+Directory: 3.1/onbuild
+
+Tags: 3.2.1, 3.2
+GitCommit: f7115fe92fa20ad354904646b50a5265bd8e8ad5
+Directory: 3.2
+
+Tags: 3.2.1-onbuild, 3.2-onbuild
+GitCommit: e0f9cb5a3cc190acd42565113e3380b5853f5746
+Directory: 3.2/onbuild
+
+Tags: 3.3.0-rc.1, 3.3.0, 3.3
+GitCommit: f7115fe92fa20ad354904646b50a5265bd8e8ad5
+Directory: 3.3
+
+Tags: 3.3.0-rc.1-onbuild, 3.3.0-onbuild, 3.3-onbuild
+GitCommit: e0f9cb5a3cc190acd42565113e3380b5853f5746
+Directory: 3.3/onbuild
+
+Tags: 3.4.0-rc.2, 3.4.0, 3.4, latest
+GitCommit: f7115fe92fa20ad354904646b50a5265bd8e8ad5
+Directory: 3.4
+
+Tags: 3.4.0-rc.2-onbuild, 3.4.0-onbuild, 3.4-onbuild
+GitCommit: 7639aa99b780cb72712548294a7b60e673f237e8
+Directory: 3.4/onbuild
+

+ 3 - 0
test/config.sh

@@ -85,6 +85,9 @@ imageTests+=(
 		haskell-ghci
 		haskell-runhaskell
 	'
+	[haxe]='
+		haxe-hello-world
+	'
 	[hylang]='
 		hylang-sh
 		hylang-hello-world

+ 5 - 0
test/tests/haxe-hello-world/Container.hx

@@ -0,0 +1,5 @@
+class Container {
+    static function main():Void {
+        trace("Hello World!");
+    }
+}

+ 1 - 0
test/tests/haxe-hello-world/expected-std-out.txt

@@ -0,0 +1 @@
+Container.hx:3: Hello World!

+ 1 - 0
test/tests/haxe-hello-world/run.sh

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

+ 7 - 0
test/tests/run-haxe-in-container.sh

@@ -0,0 +1,7 @@
+#!/bin/bash
+set -e
+
+testDir="$(readlink -f "$(dirname "$BASH_SOURCE")")"
+runDir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
+
+source "$runDir/run-in-container.sh" "$testDir" "$1" haxe -main Container --interp