7.21 杭州源创会火热报名中,一起来看看移动开发如何紧跟浪潮?
Watch Star Fork

Piplin / PiplinPHPGVP

加入码云
与超过 300 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
Piplin是一款免费、开源的持续集成与部署系统,适用于软件的自动化构建、测试和部署相关的各种应用场景 - 官方QQ群:656868 https://github.com/Piplin/Piplin
一键复制 编辑 原始数据 按行查看 历史
Makefile 1.49 KB lianguan 提交于 2017-12-03 11:30 . Simplify install wizard
.PHONY: dependency-install file-permission
dependency: dependency-install file-permission npm-install
install: app-install cache-config
update: dependency-install app-update dump-autoload cache-config
help:
@echo 'make install -- download dependencies and install'
@echo 'make update -- pull repo and rebuild assets without minifing'
dependency-install:
composer install -o --no-dev
npm-install:
npm install --production
app-install:
php artisan app:install
app-update:
- php artisan app:update
file-permission:
chmod -R 777 storage/
chmod -R 777 bootstrap/cache/
chmod -R 777 public/upload
migration:
php artisan migrate --force
seed:
php artisan db:seed
cs:
vendor/bin/phpcs -p --standard=PSR2 --ignore="app/Helpers/Helpers.php,app/Presenters" app/
vendor/bin/phpdoccheck --directory=app
dump-autoload:
php artisan clear-compiled
cache-config:
php artisan config:cache
# Create the databases for Travis CI
ifeq "$(DB)" "sqlite"
travis:
@sed -i 's/DB_CONNECTION=mysql/DB_CONNECTION=sqlite/g' .env
@sed -i 's/DB_DATABASE=piplin//g' .env
@sed -i 's/DB_USERNAME=travis//g' .env
@touch $(TRAVIS_BUILD_DIR)/database/database.sqlite
else ifeq "$(DB)" "pgsql"
travis:
@sed -i 's/DB_CONNECTION=mysql/DB_CONNECTION=pgsql/g' .env
@sed -i 's/DB_USERNAME=piplin/DB_USERNAME=postgres/g' .env
@psql -c 'CREATE DATABASE piplin;' -U postgres;
else
travis:
@sed -i 's/DB_USERNAME=piplin/DB_USERNAME=travis/g' .env
@sed -i 's/DB_PASSWORD=secret/DB_PASSWORD=/g' .env
@mysql -e 'CREATE DATABASE piplin;'
endif

评论 ( 0 )

你可以在登录后,发表评论

11_float_left_people 11_float_left_close