-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added script for linking local versions of Bedrock* deps for testing
- Loading branch information
Showing
1 changed file
with
21 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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "--- Installing BedrockProtocol, BedrockData, BedrockBlockUpgradeSchema, BedrockItemUpgradeSchema dependencies from local repositories." | ||
echo "--- This allows you to perform integration tests using PocketMine-MP, without immediately publishing new versions of these libraries." | ||
|
||
cp composer.json composer-local-protocol.json | ||
cp composer.lock composer-local-protocol.lock | ||
|
||
export COMPOSER=composer-local-protocol.json | ||
composer config repositories.bedrock-protocol path ../deps/BedrockProtocol | ||
composer config repositories.bedrock-data path ../deps/BedrockData | ||
composer config repositories.bedrock-block-upgrade-schema path ../deps/BedrockBlockUpgradeSchema | ||
composer config repositories.bedrock-item-upgrade-schema path ../deps/BedrockItemUpgradeSchema | ||
|
||
composer require pocketmine/bedrock-protocol:*@dev pocketmine/bedrock-data:*@dev pocketmine/bedrock-block-upgrade-schema:*@dev pocketmine/bedrock-item-upgrade-schema:*@dev | ||
|
||
composer install | ||
|
||
echo "--- Local dependencies have been successfully installed." | ||
echo "--- This script does not modify composer.json. To go back to the original dependency versions, simply run 'composer install'." | ||
|