فهرست منبع

Merge pull request #2500 from swiftdocker/swift

Swift
Tianon Gravi 8 سال پیش
والد
کامیت
3f37bb51c8

+ 6 - 0
library/swift

@@ -0,0 +1,6 @@
+Maintainers: Haris Amin <[email protected]> (@hamin),
+             Thomas Catterall <[email protected]> (@swizzlr)
+GitRepo: https://github.com/swiftdocker/docker-swift.git
+
+Tags: 3.0.2, 3.0, 3, latest
+GitCommit: 94a43272fe6411c12045414cfc797d3c0bcf2823

+ 3 - 0
test/config.sh

@@ -175,6 +175,9 @@ imageTests+=(
 	[silverpeas]='
 		silverpeas-basics
 	'
+	[swift]='
+		swift-hello-world
+  '
 	[tomcat]='
 		tomcat-hello-world
 	'

+ 7 - 0
test/tests/run-swift-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" swift ./container.swift

+ 1 - 0
test/tests/swift-hello-world/container.swift

@@ -0,0 +1 @@
+print("Hello, world!")

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

@@ -0,0 +1 @@
+Hello, world!

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

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