Signed-off-by: Chikachi <chikachi@chikachi.net>
master
Chikachi 2018-06-03 21:26:28 +02:00
parent d7991fc53c
commit 775a4efcdd
No known key found for this signature in database
GPG Key ID: 0136086A0AC09F5E
2 changed files with 3 additions and 4 deletions

2
Jenkinsfile vendored
View File

@ -34,7 +34,7 @@ pipeline {
steps {
withCredentials([file(credentialsId: 'discordintegration.test.config', variable: 'CONFIG_FILE')]) {
sh 'mkdir -p run/config/Chikachi'
sh 'cp "$CONFIG_FILE" ./run/config/Chikachi/'
sh 'cp "$CONFIG_FILE" ./'
dir('serverTest') {
sh 'npm update'
sh 'tsc'

View File

@ -67,14 +67,13 @@ getVersions()
.acceptEULA()
.useServerProperties()
.setServerDirectory(serverDirectory)
.setAutoRemoveData(false)
.addLocalMod(modFilepath)
.addConfigFile(pathResolve('..', 'discordintegration.json'), ['Chikachi'])
.setDelayBeforeCommands(5000)
.addCommand(`/say Hello from ${minecraftVersion}`);
return tester.installForge()
.then(() => tester.runServer())
.then(() => tester.removeOldData());
.then(() => tester.runServer());
})
.catch(err => {
console.error(err);