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
9259fd7a
Commit
9259fd7a
authored
1 week ago
by
Fabrice Gangler
Browse files
Options
Downloads
Patches
Plain Diff
feat(dev): allow clean up database and load fixture (DEV environment)
parent
c84847b2
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
+16
-9
16 additions, 9 deletions
Makefile
with
16 additions
and
9 deletions
Makefile
+
16
−
9
View file @
9259fd7a
...
...
@@ -68,15 +68,6 @@ gitlab_api_logout: ## Logout to Gitlab API
cd
.gitlab/ci/Dockerfiles
&&
./90_gitlab-logout.sh
.PHONY
:
gitlab_api_logout
##
##--- SYMFONY database --------------------------------------------------------
migration_database
:
##
Apply Doctrine migrations
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:migrations:list
--env
=
dev
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:migrations:migrate
-n
--env
=
dev
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:migrations:list
--env
=
dev
.PHONY
:
migration_database
##
##--- DOCKER ------------------------------------------------------------------
...
...
@@ -95,6 +86,22 @@ docker_with_empty-database: ## Run Docker containers (database, mailcatcher) wi
cd
"
${
WEBAPP_DIR
}
/docker"
&&
docker-compose up
.PHONY
:
docker_with_empty-database
##
##--- DEV environment --------------------------------------------------------
migration_database_env_dev
:
##
Apply Doctrine migrations (DEV environment)
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:migrations:list
--env
=
dev
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:migrations:migrate
-n
--env
=
dev
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:migrations:list
--env
=
dev
.PHONY
:
migration_database_env_dev
load_fixture_env_dev
:
##
Clean up database and load fixture (DEV environment)
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:database:drop
--force
--env
=
dev
||
true
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:database:create
--env
=
dev
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:migrations:migrate
-n
--env
=
dev
cd
"
${
WEBAPP_DIR
}
"
&&
bin/console doctrine:fixtures:load
-n
--env
=
dev
.PHONY
:
load_fixture_env_dev
##
##--- TESTS -------------------------------------------------------------------
...
...
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