1 Star 0 Fork 0

李海清/Lychee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
post-merge 935 Bytes
一键复制 编辑 原始数据 按行查看 历史
ildyria 提交于 2020-05-15 11:50 . also print commands used
#!/bin/sh
NO_COLOR="\033[0m"
GREEN="\033[38;5;010m"
ORANGE="\033[38;5;214m"
echo "\n${GREEN}post merge hook start${NO_COLOR}\n"
# we check if vendor/bin/phpunit is present.
# If yes this means we are in dev mode.
PHPUNIT="vendor/bin/phpunit"
if [ -f ".NO_AUTO_COMPOSER_MIGRATE" ]; then
echo "\n${ORANGE}composer and database migration skipped as per requested.${NO_COLOR}\n"
else
if [ -x "$PHPUNIT" ]; then
echo "\n${ORANGE}Dev mode detected${NO_COLOR}\n"
echo "composer install --no-suggest"
composer install --no-suggest
else
echo "\n${ORANGE}--no-dev mode detected${NO_COLOR}\n"
echo "composer install --no-dev --prefer-dist --no-suggest"
composer install --no-dev --prefer-dist --no-suggest
fi
if [ -f ".env" ]; then
echo "php artisan migrate --force"
php artisan migrate --force
fi
fi
echo "\n${GREEN}post merge hook finish${NO_COLOR}\n"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lihq1403/Lychee.git
git@gitee.com:lihq1403/Lychee.git
lihq1403
Lychee
Lychee
master

搜索帮助