Fix travis test integration

Add config.json.test as the the config for running the tests on travis
and add script command to copy it to config.json there.  Should fix the
unit test for master failing at loading the config.
This commit is contained in:
Hornwitser committed 2019-08-21 12:43:09 +02:00
1 parent a3fc1dda8c
commit 8898e923de
2 files changed
+48

No files matched your search

+1
View File
@@ -6,5 +6,6 @@ before_install:
- sudo apt-get install -y curl git tar
- curl -o factorio.tar.gz -L https://www.factorio.com/get-download/latest/headless/linux64
- tar -xvf factorio.tar.gz
- cp -n config.json.test config.json
script:
- npm run cover
+47
View File
@@ -0,0 +1,47 @@
{
"factorioDirectory": "./factorio",
"instanceDirectory": "./instances",
"databaseDirectory": "./database",
"publicIP": "localhost",
"masterIP": "localhost",
"masterPort": 8080,
"sslPort": 443,
"sslCert": "database/certificates/cert.crt",
"sslPrivKey": "database/certificates/cert.key",
"masterAuthToken": "",
"masterAuthSecret": "TestSecretDoNotUse",
"username": "",
"token": "",
"factorio_version": "0.16.41",
"verify_user_identity": true,
"auto_pause": false,
"allow_commands": "admins-only",
"game_password": "",
"description": "This server runs Clusterio",
"visibility": {
"public": true,
"lan": true
},
"itemStats": {
"maxEntries":60,
"entriesPerSecond": 0.01666666667
},
"logItemTransfers": false,
"disableFairItemDistribution": true,
"useNeuralNetDoleDivider": false,
"uploadModsToMaster": true,
"msBetweenCommands": 10,
"allowRemoteCommandExecution": true,
"enableCrossServerShout": true,
"mirrorAllChat": false,
"autosaveInterval": 600000,
"disablePrometheusPushgateway": false,
"disableImportsOfEverythingExceptElectricity": false
}