From 10e0ad8916479eff84efe35b0c7f799725bd8aed Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 31 Oct 2015 19:38:59 +0000 Subject: [PATCH] added new set of tests for travisci --- .travis.yml | 2 +- tests/test.sh | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 85148ae4e..4e39e2473 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,4 +22,4 @@ addons: script: - - bash test.sh \ No newline at end of file + - bash tests/test.sh \ No newline at end of file diff --git a/tests/test.sh b/tests/test.sh index edddbd25b..839b7538c 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -430,3 +430,55 @@ sleep 1 rm -rfv ${rootdir} echo "END" +#!/bin/bash +# Teamspeak 3 +# Server Management Script +# Author: Daniel Gibbs +# Website: http://gameservermanagers.com +version="040715" + +#### Variables #### + +# Notification Email +# (on|off) +emailnotification="on" +email="me@Danielgibbs.co.uk" + +# Start Variables +updateonstart="off" + +# Server Details +gamename="Teamspeak 3" +servername="Teamspeak 3 Server" +servicename="ts3-server" + +# Directories +rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/ts3server" +selfname="$(basename $0)" +lockselfname=".${servicename}.lock" +filesdir="${rootdir}/serverfiles" +systemdir="${filesdir}" +executabledir="${filesdir}" +executable="./ts3server_startscript.sh" +servercfg="${servicename}.ini" +servercfgdir="${filesdir}" +servercfgfullpath="${servercfgdir}/${servercfg}" +backupdir="${rootdir}/backups" + +# Logging +logdays="7" +gamelogdir="${filesdir}/logs" +scriptlogdir="${rootdir}/log/script" + +scriptlog="${scriptlogdir}/${servicename}-script.log" +emaillog="${scriptlogdir}/${servicename}-email.log" + +scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log" + + +echo "=================================" +echo "Generic Server Tests" +echo "Using: ${gamename}" +echo "=================================" +echo "" +sleep 1 \ No newline at end of file