From 8898e923de894ecc912488de589624928d40abec Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 21 Aug 2019 01:21:23 +0200 Subject: [PATCH] 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. --- .travis.yml | 1 + config.json.test | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 config.json.test diff --git a/.travis.yml b/.travis.yml index 93725d69..9b88efc3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/config.json.test b/config.json.test new file mode 100644 index 00000000..3ea35cbd --- /dev/null +++ b/config.json.test @@ -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 +}