-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 1.51 KB
/
Makefile
File metadata and controls
36 lines (27 loc) · 1.51 KB
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
28
29
30
31
32
33
34
35
36
TITLE = [redirect]
##############################################################################################
################################### T E S T S U I T E S ####################################
##############################################################################################
unit-tests:
@/bin/echo -e "${TITLE} testing suite started..." \
&& vendor/bin/phpunit -c tests/unit/phpunit.xml --coverage-html tests/unit/coverage
##############################################################################################
####################################### C O M P O S E R ######################################
##############################################################################################
autoload:
@/bin/echo -e "${TITLE} generating autoloader..." \
&& composer dump-autoload --optimize
get-composer:
@/bin/echo -e "${TITLE} downloading composer..." \
&& curl -sS https://getcomposer.org/installer | php \
clean-composer-lock:
@rm -rf composer.lock \
&& /bin/echo -e "${TITLE} deleted composer.lock"
install: get-composer
@/bin/echo -e "${TITLE} installing dependencies and dev dependencies..." \
&& COMPOSER_ALLOW_SUPERUSER=1 composer install --optimize-autoloader --no-plugins --no-scripts \
&& /bin/echo -e "${TITLE} dependencies installed"
update: clean-composer-lock
@ /bin/echo -e "${TITLE} update dependencies..." \
&& COMPOSER_ALLOW_SUPERUSER=1 composer update --optimize-autoloader --no-plugins --no-scripts $(p)\
&& /bin/echo -e "${TITLE} dependencies updated"