-
Notifications
You must be signed in to change notification settings - Fork 72
/
Makefile
27 lines (23 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
init:
composer install
@if [ ! -f .env ];\
then cp .env.example .env;\
echo "Copied from .env.example";\
php artisan key:generate;\
fi
php artisan vendor:publish --tag=lfm_public --force
php artisan vendor:publish --tag=lfm_config --force
touch database/database.sqlite
php artisan migrate:refresh --seed
update:
composer update unisharp/laravel-filemanager
php artisan vendor:publish --tag=lfm_public --force
php artisan vendor:publish --tag=lfm_config --force
test:
@echo "PSR-2 Testing"
./vendor/squizlabs/php_codesniffer/scripts/phpcs --standard=PSR2 vendor/unisharp/laravel-filemanager/src/controllers
./vendor/squizlabs/php_codesniffer/scripts/phpcs --standard=PSR2 vendor/unisharp/laravel-filemanager/src/Events
./vendor/squizlabs/php_codesniffer/scripts/phpcs --standard=PSR2 vendor/unisharp/laravel-filemanager/src/middlewares
./vendor/squizlabs/php_codesniffer/scripts/phpcs --standard=PSR2 vendor/unisharp/laravel-filemanager/src/traits
@echo "End-To-End Testing"
vendor/bin/phpunit vendor/unisharp/laravel-filemanager/tests/ApiTest.php