Added GitHub workflows (#81)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2020-07-03 10:30:23 -05:00
1 parent 24c7a2ca7d
commit b9478d5e2f
5 files changed
+116

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
version: "3.8"
services:
sut:
depends_on:
- mc
image: itzg/mc-monitor:0.6.0
command: status-bedrock --host mc --retry-interval 1s --retry-limit 60
mc:
build:
context: ..
environment:
EULA: "TRUE"
+21
View File
@@ -0,0 +1,21 @@
version: "3.8"
services:
sut:
depends_on:
- mc
image: itzg/mc-monitor:0.6.0
command: status-bedrock --host mc --retry-interval 1s --retry-limit 90
mc:
build:
context: ..
environment:
EULA: "TRUE"
VERSION: "${BDS_VERSION}"
volumes:
- mc:/data
volumes:
mc:
external:
name: mc-shared
Executable
+28
View File
@@ -0,0 +1,28 @@
#!/bin/sh
# Args:
# - compose project
# - test description
runTest() {
composeArgs="-f docker-compose.$1.test.yml -p $1"
failed=false
docker-compose ${composeArgs} run sut || failed=true
$failed && docker-compose ${composeArgs} logs
docker-compose ${composeArgs} down -v
if $failed; then
echo "Test failed using compose project $1: $2"
exit 1
fi
}
cd $(dirname $0)
runTest defaults "using defaults"
docker volume create mc-shared
trap "docker volume rm mc-shared" EXIT
export BDS_VERSION=1.14
runTest versioned "with VERSION=1.14"
export BDS_VERSION=1.16
runTest versioned "upgrading to VERSION=1.16"