minecraft-pi-docker/scripts/test.sh
2022-03-09 18:47:31 -05:00

19 lines
424 B
Bash
Executable File

#!/bin/sh
set -e
# Build Test
./scripts/setup.sh server "$(dpkg-architecture -qDEB_BUILD_ARCH)"
./scripts/build.sh server "$(dpkg-architecture -qDEB_BUILD_ARCH)"
# Add minecraft-pi-reborn-server To PATH
export PATH="$(pwd)/out/server-$(dpkg-architecture -qDEB_BUILD_ARCH)/usr/bin:${PATH}"
# Create Test Directory
rm -rf build/test
mkdir -p build/test
# Run Test
cd build/test
minecraft-pi-reborn-server --only-generate