1
0
Fork 0

Added support to start up MCServer and then immediatly sut it down in travis

This commit is contained in:
Tycho 2014-02-05 10:10:45 -08:00
parent 62c18868b2
commit f25597540d
3 changed files with 9 additions and 1 deletions

View File

@ -3,7 +3,7 @@ compiler:
- gcc
- clang
# Build MCServer
script: cmake . -DCMAKE_BUILD_TYPE=RELEASE && make -j 2
script: cmake . -DCMAKE_BUILD_TYPE=RELEASE -DSELF_TEST=1 && make -j 2 && cd MCServer/ && ./MCServer
# Notification Settings
notifications:

View File

@ -124,6 +124,10 @@ endif()
# The Expat library is linked in statically, make the source files aware of that:
add_definitions(-DXML_STATIC)
# Self Test Mode enables extra checks at startup
if(${SELF_TEST})
add_definitions(-DSELF_TEST)
endif()
# Declare the flags used for profiling builds:
if (MSVC)

View File

@ -172,6 +172,10 @@ void cPluginManager::InsertDefaultPlugins(cIniFile & a_SettingsIni)
a_SettingsIni.AddValue("Plugins", "Plugin", "Core");
a_SettingsIni.AddValue("Plugins", "Plugin", "TransAPI");
a_SettingsIni.AddValue("Plugins", "Plugin", "ChatLog");
#ifdef SELFTEST
a_SettingsIni.AddValue("Plugins", "Plugin", "SelfTest");
#endif
}