mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
travis.sh: use new composer commands
This commit is contained in:
parent
95dbb00d4c
commit
6e297168c2
@ -16,12 +16,12 @@ PLUGINS_DIR="$DATA_DIR/plugins"
|
||||
|
||||
rm -rf "$DATA_DIR"
|
||||
rm PocketMine-MP.phar 2> /dev/null
|
||||
mkdir "$DATA_DIR"
|
||||
mkdir "$PLUGINS_DIR"
|
||||
|
||||
cd tests/plugins/DevTools
|
||||
php -dphar.readonly=0 ./src/DevTools/ConsoleScript.php --make ./ --relative ./ --out ../../../DevTools.phar
|
||||
cd ../../..
|
||||
composer make-devtools
|
||||
composer make-server
|
||||
|
||||
php -dphar.readonly=0 ./build/server-phar.php ./PocketMine-MP.phar
|
||||
if [ -f PocketMine-MP.phar ]; then
|
||||
echo Server phar created successfully.
|
||||
else
|
||||
@ -29,9 +29,6 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir "$DATA_DIR"
|
||||
mkdir "$PLUGINS_DIR"
|
||||
mv DevTools.phar "$PLUGINS_DIR"
|
||||
cp -r tests/plugins/TesterPlugin "$PLUGINS_DIR"
|
||||
echo -e "stop\n" | php PocketMine-MP.phar --no-wizard --disable-ansi --disable-readline --debug.level=2 --data="$DATA_DIR" --plugins="$PLUGINS_DIR" --anonymous-statistics.enabled=0 --settings.async-workers="$PM_WORKERS" --settings.enable-dev-builds=1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user