summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-08-13 16:20:52 +0200
committerHaru <haru@dotalux.com>2015-08-13 16:20:52 +0200
commit1dd61c6732394219fdbe9abed2af5c785a0309b0 (patch)
tree09993524890852a7a39824731ec7d064a00e528c /npc
parent7c67e4fb602368f67a9f64377d2702c356c23b75 (diff)
downloadhercules-1dd61c6732394219fdbe9abed2af5c785a0309b0.tar.gz
hercules-1dd61c6732394219fdbe9abed2af5c785a0309b0.tar.bz2
hercules-1dd61c6732394219fdbe9abed2af5c785a0309b0.tar.xz
hercules-1dd61c6732394219fdbe9abed2af5c785a0309b0.zip
Added script_mapquit plugin (moved from the StaffPlugins repository)
The plugin is used by the Travis CI build, and it makes more sense to be present here, so that it can be kept up to date when the HPM is updated, to avoid build failures. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc')
-rw-r--r--npc/dev/ci_test.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/npc/dev/ci_test.txt b/npc/dev/ci_test.txt
new file mode 100644
index 000000000..058d25ad5
--- /dev/null
+++ b/npc/dev/ci_test.txt
@@ -0,0 +1,22 @@
+//===== Hercules Script ======================================
+//= Script engine self-tests, CI integration
+//===== By: ==================================================
+//= Haru
+//===== Current Version: =====================================
+//= 1.0
+//===== Description: =========================================
+//= This script depends on npc/dev/test.txt, and extends it so
+// that it can be called in a CI environment and returns an
+// appropriate value upon termination.
+//= This script is part of the script_mapquit plugin
+// distribution, and requires said plugin to be loaded.
+//= Usage: ./map-server --load-plugin script_mapquit --load-script npc/dev/test.txt --load-script npc/dev/ci_test.txt
+
+- script HerculesSelfTestCI -1,{
+ end;
+
+OnInit:
+ .@val = callfunc("HerculesSelfTestHelper");
+ mapquit(.@val);
+ end;
+}