From 9f7ef09a412078df257dc6d5c4e36f65a0478c5d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Jul 2016 20:58:39 +0300 Subject: Add into travis check for hpm. --- travis.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'travis.sh') diff --git a/travis.sh b/travis.sh index 646532374..269395312 100755 --- a/travis.sh +++ b/travis.sh @@ -45,6 +45,7 @@ function aborterror { } function run_server { + echo "Running: $1 --run-once $2" $1 --run-once $2 2>runlog.txt export errcode=$? export teststr=$(cat runlog.txt) @@ -93,7 +94,8 @@ case "$MODE" in build) (cd tools && ./validateinterfaces.py silent) || aborterror "Interface validation error." ./configure $@ || (cat config.log && aborterror "Configure error, aborting build.") - make sql -j3 || aborterror "Build failed." + make -j3 || aborterror "Build failed." + make plugins -j3 || aborterror "Build failed." make plugin.script_mapquit -j3 || aborterror "Build failed." ;; test) @@ -128,10 +130,15 @@ EOF [ $? -eq 0 ] || aborterror "Unable to import configuration, aborting tests." ARGS="--load-script npc/dev/test.txt " ARGS="--load-plugin script_mapquit $ARGS --load-script npc/dev/ci_test.txt" - echo "Running Hercules with command line: ./map-server --run-once $ARGS" + PLUGINS="--load-plugin HPMHooking --load-plugin sample" + echo "run all servers without HPM" run_server ./login-server run_server ./char-server run_server ./map-server "$ARGS" + echo "run all servers wit HPM" + run_server ./login-server "$PLUGINS" + run_server ./char-server "$PLUGINS" + run_server ./map-server "$ARGS $PLUGINS" ;; getplugins) echo "Cloning plugins repository..." -- cgit v1.2.3-60-g2f50