Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Memorekall Member New
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rekall
Memorekall Member New
Commits
499d734e
Verified
Commit
499d734e
authored
3 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Configure DB for manual launch
parent
ebd0b541
No related branches found
No related tags found
1 merge request
!25
Add a gitlab-ci file
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env.test
+1
-1
1 addition, 1 deletion
.env.test
.gitlab-ci.yml
+7
-6
7 additions, 6 deletions
.gitlab-ci.yml
tools/ci-job.sh
+3
-1
3 additions, 1 deletion
tools/ci-job.sh
with
11 additions
and
8 deletions
.env.test
+
1
−
1
View file @
499d734e
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
7
−
6
View file @
499d734e
...
...
@@ -4,9 +4,9 @@ services:
variables
:
MYSQL_USER
:
rekallfrwsmember
MYSQL_DATABASE
:
rekallfrwsmember
_test
MYSQL_PASSWORD
:
test
MYSQL_
RANDOM_
ROOT_PASSWORD
:
ok
MYSQL_DATABASE
:
rekallfrwsmember
MYSQL_PASSWORD
:
sm4SyZVPu6wpjZfg
MYSQL_ROOT_PASSWORD
:
root
BY_PASS_CODE
:
ed156b9188ecddf0c556d5712f0a84cc
MAILER_DSN
:
null
://null
SYMFONY_SECRET
:
0f817363a768f111a17d2522b8d7e2d72cf738b1
...
...
@@ -36,11 +36,12 @@ composer:
-
if
:
'
$CI_COMMIT_MESSAGE
=~
/test/'
-
if
:
'
$CI_COMMIT_BRANCH
=~
/test/
||
$CI_COMMIT_BRANCH
==
"production"
||
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH'
script
:
-
docker run -v ${CI_PROJECT_DIR}:/sites/memorekall/www/web_dev -v /log:/sites/memorekall/www/web_dev/log --entrypoint /sites/memorekall/www/web_dev/tools/ci-job.sh $TEST_IMAGE
-
docker network create rekall
-
docker run --network rekall -e MYSQL_DATABASE=$MYSQL_DATABASE -e MYSQL_USER=$MYSQL_USER -e MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD -e $MYSQL_PASSWORD=$MYSQL_PASSWORD -v ${CI_PROJECT_DIR}/docker/mysql/init_db_d:/docker-entrypoint-initdb.d --name=mysql mysql:5.6
-
docker run --network rekall -v ${CI_PROJECT_DIR}:/sites/memorekall/www/web_dev -v /log:/sites/memorekall/www/web_dev/log --entrypoint /sites/memorekall/www/web_dev/tools/ci-job.sh $TEST_IMAGE
-
docker network rm rekall
artifacts
:
when
:
always
expire_in
:
1 week
paths
:
-
tests/_output
services
:
-
mysql
This diff is collapsed.
Click to expand it.
tools/ci-job.sh
+
3
−
1
View file @
499d734e
...
...
@@ -20,12 +20,14 @@ run_step(){
cd
$(
dirname
$(
dirname
$0
))
if
[
!
-f
".env"
]
;
then
cp
.env
_defaul
t .env
cp
.env
.tes
t .env
fi
run_step
"Starting apache"
apache2ctl
-DFOREGROUND
&
run_step
"PHP dependencies"
composer
install
run_step
"Javascript dependencies"
npm
install
run_step
"Assets compilation"
npm run dev
run_step
"Doctrine create DB"
php bin/console doctrine:migrations:migrate
--env
=
test
run_step
"Doctrine load fixtures"
php bin/console doctrine:fixtures:load
--env
=
test
run_step
"Unit and functional tests"
composer tests
run_step
"Php Code Sniffer"
composer phpcs
run_step
"Php Static analysis"
composer phpstan
...
...
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