Commit the Makefile
This commit is contained in:
parent
c9e3915484
commit
ce8ca61afa
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
||||||
!/.idea/**
|
!/.idea/**
|
||||||
!/bin/*
|
!/bin/*
|
||||||
!/config/**
|
!/config/**
|
||||||
|
!/Makefile
|
||||||
!/phpstan.neon
|
!/phpstan.neon
|
||||||
!/phpunit.xml.dist
|
!/phpunit.xml.dist
|
||||||
!/scripts/**
|
!/scripts/**
|
||||||
|
|
32
Makefile
Normal file
32
Makefile
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
.PHONY: *
|
||||||
|
|
||||||
|
phpcs:
|
||||||
|
symfony php vendor/bin/phpcs -n \
|
||||||
|
--standard="Drupal,DrupalPractice" \
|
||||||
|
--extensions="php,module,inc,install,test,profile,theme" \
|
||||||
|
--ignore=*/tests/* \
|
||||||
|
--exclude="Drupal.Commenting.ClassComment,Drupal.Commenting.FunctionComment" \
|
||||||
|
web/modules/custom
|
||||||
|
|
||||||
|
symfony php vendor/bin/phpcs -n \
|
||||||
|
--standard="Drupal,DrupalPractice" \
|
||||||
|
--extensions="php,module,inc,install,test,profile,theme" \
|
||||||
|
--exclude="Drupal.Commenting.ClassComment,Drupal.Commenting.DocComment,Drupal.Commenting.FunctionComment,Drupal.NamingConventions.ValidFunctionName" \
|
||||||
|
web/modules/custom/**/tests
|
||||||
|
|
||||||
|
phpstan:
|
||||||
|
vendor/bin/phpstan analyze
|
||||||
|
|
||||||
|
phpunit:
|
||||||
|
vendor/bin/phpunit web/modules/custom
|
||||||
|
|
||||||
|
start:
|
||||||
|
docker-compose up -d
|
||||||
|
symfony server:start -d
|
||||||
|
|
||||||
|
stop:
|
||||||
|
symfony server:stop
|
||||||
|
docker-compose down
|
||||||
|
|
||||||
|
test: phpstan phpunit phpcs
|
||||||
|
|
Loading…
Reference in a new issue