This repository has been archived by the owner on Jul 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1b118e
commit cde4049
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
# | ||
# Run this usually from a pre-commit hook... | ||
# | ||
. "$(dirname "$(readlink -f "$0")")/libcommon/utils/init.sh" | ||
|
||
[ ! -f plugin.yml ] && fatal "No plugin.yml" | ||
[ -f README.md ] && $gd3tool gen -w src | ||
|
||
if [ -d resource/messages ] ; then | ||
$mcgen gen resources/messages src $([ -d libcommon/src ] && echo libcommon/src) | ||
$mcgen enc resources/messages | ||
fi | ||
|
||
$mkver src | ||
phplint src || fatal "Failed lint" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# | ||
download_url="https://github.com/Muirfield/ManyWorlds/archive/master.zip" | ||
|
||
|
||
pre() { | ||
wget -O $MPDIR/plugins/test.zip $download_url | ||
} | ||
|
||
post() { | ||
rm -f $MPDIR/plugins/*.zip | ||
} | ||
|
||
case "$1" in | ||
pre) | ||
pre "$@" | ||
;; | ||
post) | ||
post "$@" | ||
;; | ||
esac | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Check if MW loaded. We assume MW is in the attached zip... | ||
# | ||
@ $cmdmap = $server->getCommandMap() | ||
@ $oldcmd = $cmdmap->getCommand("mw") | ||
@ if (!$oldcmd) return | ||
|
||
mw help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
# | ||
. "$(dirname "$(readlink -f "$0")")/libcommon/utils/init.sh" | ||
. $utlib/pm.sh | ||
. $utlib/unitest.sh | ||
|
||
trap 'exit $retcode' EXIT | ||
|
||
[ ! -f plugin.yml ] && fatal "No plugin.yml" | ||
[ -f README.md ] && $gd3tool gen -w src | ||
|
||
$mkver src | ||
phplint src || fatal "Failed lint" | ||
|
||
install_pocketmine | ||
testgroup="$(default_tests t "$@")" | ||
[ -z "$testgroup" ] && exit | ||
|
||
pm_plugins | ||
$mkplugin -o $MPDIR/plugins libcommon/ | ||
$mkplugin -o $MPDIR/plugins . | ||
|
||
runtests $testgroup | ||
|
||
show_results |