Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Comptoir du Libre v3 - Upcoming version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Comptoir
Comptoir du Libre v3 - Upcoming version
Commits
e29f0ac9
Commit
e29f0ac9
authored
8 months ago
by
Fabrice Gangler
Browse files
Options
Downloads
Patches
Plain Diff
chore: clean up Make file
parent
934d8484
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+15
-12
15 additions, 12 deletions
Makefile
with
15 additions
and
12 deletions
Makefile
+
15
−
12
View file @
e29f0ac9
...
@@ -10,7 +10,8 @@ DOCKER_COMPOSE = $(WEBAPP_DIR)/docker-compose
...
@@ -10,7 +10,8 @@ DOCKER_COMPOSE = $(WEBAPP_DIR)/docker-compose
CONSOLE
=
$(
WEBAPP_DIR
)
/bin/console
CONSOLE
=
$(
WEBAPP_DIR
)
/bin/console
PHPUNIT
=
$(
WEBAPP_DIR
)
/bin/phpunit
PHPUNIT
=
$(
WEBAPP_DIR
)
/bin/phpunit
## === SYMFONY Routes ================================================
##
##--- SYMFONY Routes ----------------------------------------------------------
verif_autodoc_routes
:
##
Check that Symfony route auto-documentation files are up to date
verif_autodoc_routes
:
##
Check that Symfony route auto-documentation files are up to date
$(
CONSOLE
)
debug:route
--env
=
prod
--format
=
json
--show-controllers
>
$(
AUTO_DOC_ROUTES_DIR
)
/webapp_routes_prod.json
$(
CONSOLE
)
debug:route
--env
=
prod
--format
=
json
--show-controllers
>
$(
AUTO_DOC_ROUTES_DIR
)
/webapp_routes_prod.json
...
@@ -45,18 +46,16 @@ routes: ## Display Symfony routes
...
@@ -45,18 +46,16 @@ routes: ## Display Symfony routes
.PHONY
:
routes
.PHONY
:
routes
## === SYMFONY database ================================================
##
##--- SYMFONY database --------------------------------------------------------
migration_database
:
##
Apply Doctrine migrations
migration_database
:
##
Apply Doctrine migrations
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:migrations:migrate
-n
--env
=
dev
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:migrations:migrate
-n
--env
=
dev
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:migrations:list
--env
=
dev
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:migrations:list
--env
=
dev
.PHONY
:
migration_database
.PHONY
:
migration_database
## === DOCKER ================================================
##
##--- DOCKER ------------------------------------------------------------------
cfssl_run_fake_server
:
##
Run fake CFSSL server
cd
"
${
WEBAPP_DIR
}
/data/cfssl_fake-server"
&&
php
-S
127.0.0.1:9999
.PHONY
:
cfssl_run_fake_server
docker
:
##
Run Docker containers (database
,
mailcatcher)
docker
:
##
Run Docker containers (database
,
mailcatcher)
cd
"
${
WEBAPP_DIR
}
/docker"
&&
docker-compose up
cd
"
${
WEBAPP_DIR
}
/docker"
&&
docker-compose up
...
@@ -74,7 +73,8 @@ docker_with_empty-database: ## Run Docker containers (database, mailcatcher) wi
...
@@ -74,7 +73,8 @@ docker_with_empty-database: ## Run Docker containers (database, mailcatcher) wi
.PHONY
:
docker_with_empty-database
.PHONY
:
docker_with_empty-database
## === TESTS ================================================
##
##--- TESTS -------------------------------------------------------------------
tests
:
##
Run all tests (PhpUnit)
tests
:
##
Run all tests (PhpUnit)
rm
-rvf
"
${
WEBAPP_DIR
}
/var/tmp/"
||
true
rm
-rvf
"
${
WEBAPP_DIR
}
/var/tmp/"
||
true
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:database:drop
--force
--env
=
test
||
true
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:database:drop
--force
--env
=
test
||
true
...
@@ -120,7 +120,8 @@ tests_repeat: ## Run all tests (PhpUnit) multiple times
...
@@ -120,7 +120,8 @@ tests_repeat: ## Run all tests (PhpUnit) multiple times
.PHONY
:
tests_repeat
.PHONY
:
tests_repeat
## === CODING STANDART ================================================
##
##--- CODING STANDART ---------------------------------------------------------
sf_coding-standard
:
##
...
sf_coding-standard
:
##
...
bin/php-cs-fixer fix
-vvv
--diff
--dry-run
webapp/src/
bin/php-cs-fixer fix
-vvv
--diff
--dry-run
webapp/src/
bin/php-cs-fixer fix
-vvv
--diff
--dry-run
webapp/tests/
bin/php-cs-fixer fix
-vvv
--diff
--dry-run
webapp/tests/
...
@@ -148,7 +149,8 @@ php_fix-coding-standard: ## ...
...
@@ -148,7 +149,8 @@ php_fix-coding-standard: ## ...
bin/phpcbf
--standard
=
PSR12
--colors
webapp/src/ webapp/tests/
bin/phpcbf
--standard
=
PSR12
--colors
webapp/src/ webapp/tests/
.PHONY
:
php_fix-coding-standard
.PHONY
:
php_fix-coding-standard
## === OTHER ================================================
##
##--- OTHER -------------------------------------------------------------------
php_linter
:
##
...
php_linter
:
##
...
bin/parallel-lint
--colors
webapp/
--exclude
webapp/vendor/
--exclude
webapp/var/
bin/parallel-lint
--colors
webapp/
--exclude
webapp/vendor/
--exclude
webapp/var/
.PHONY
:
php_linter
.PHONY
:
php_linter
...
@@ -310,10 +312,11 @@ B8F640134AB1782E,AA36B9960B5B823D,C5095986493B4AA0,8101FB57DD8130F0,95DE904AB800
...
@@ -310,10 +312,11 @@ B8F640134AB1782E,AA36B9960B5B823D,C5095986493B4AA0,8101FB57DD8130F0,95DE904AB800
.PHONY
:
phive_install_auto-trust-of-predefined-gpg-keys
.PHONY
:
phive_install_auto-trust-of-predefined-gpg-keys
# Default goal and help
# Default goal and help
## === 🆘 HELP ==================================================
##
##--- 🆘 HELP -----------------------------------------------------------------
.DEFAULT_GOAL
:=
help
.DEFAULT_GOAL
:=
help
help
:
##
Show this help.
help
:
##
Show this help.
@
echo
"Makefile
TAJIN
E"
@
echo
"Makefile
COMPTOIR-DU-LIBR
E"
@
echo
""
@
echo
""
@
echo
"Usage: make [target]"
@
echo
"Usage: make [target]"
@
echo
"---------------------------"
@
echo
"---------------------------"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment