Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Castopod
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
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
Johannes Zellner
Castopod
Commits
a37e4074
Commit
a37e4074
authored
2 years ago
by
Yassine Doghri
Browse files
Options
Downloads
Patches
Plain Diff
chore: create test database on mariadb init + harmonize test database credentials
parent
e64001d0
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+3
-3
3 additions, 3 deletions
.gitlab-ci.yml
docker-compose.yml
+1
-0
1 addition, 0 deletions
docker-compose.yml
initdb/01.sql
+2
-0
2 additions, 0 deletions
initdb/01.sql
phpunit.xml.dist
+3
-3
3 additions, 3 deletions
phpunit.xml.dist
with
9 additions
and
6 deletions
.gitlab-ci.yml
+
3
−
3
View file @
a37e4074
...
@@ -68,10 +68,10 @@ tests:
...
@@ -68,10 +68,10 @@ tests:
services
:
services
:
-
mariadb
-
mariadb
variables
:
variables
:
MYSQL_DATABASE
:
"
tests"
MYSQL_ROOT_PASSWORD
:
"
R00Tp4ssW0RD"
MYSQL_ROOT_PASSWORD
:
"
R00Tp4ssW0RD"
MYSQL_USER
:
"
tests_user"
MYSQL_DATABASE
:
"
test"
MYSQL_PASSWORD
:
"
password"
MYSQL_USER
:
"
castopod"
MYSQL_PASSWORD
:
"
castopod"
script
:
script
:
-
apt-get install -y mariadb-client libmariadb-dev
-
apt-get install -y mariadb-client libmariadb-dev
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
1
−
0
View file @
a37e4074
...
@@ -36,6 +36,7 @@ services:
...
@@ -36,6 +36,7 @@ services:
ports
:
ports
:
-
3306:3306
-
3306:3306
volumes
:
volumes
:
-
./initdb:/docker-entrypoint-initdb.d
-
mariadb:/var/lib/mysql
-
mariadb:/var/lib/mysql
environment
:
environment
:
MYSQL_ROOT_PASSWORD
:
root
MYSQL_ROOT_PASSWORD
:
root
...
...
This diff is collapsed.
Click to expand it.
initdb/01.sql
0 → 100644
+
2
−
0
View file @
a37e4074
CREATE
DATABASE
IF
NOT
EXISTS
`test`
;
GRANT
ALL
ON
`test`
.
*
TO
'castopod'
@
'%'
;
This diff is collapsed.
Click to expand it.
phpunit.xml.dist
+
3
−
3
View file @
a37e4074
...
@@ -46,9 +46,9 @@
...
@@ -46,9 +46,9 @@
<const
name=
"PUBLICPATH"
value=
"./public/"
/>
<const
name=
"PUBLICPATH"
value=
"./public/"
/>
<!-- Database configuration -->
<!-- Database configuration -->
<env
name=
"database.tests.hostname"
value=
"mariadb"
/>
<env
name=
"database.tests.hostname"
value=
"mariadb"
/>
<env
name=
"database.tests.database"
value=
"test
s
"
/>
<env
name=
"database.tests.database"
value=
"test"
/>
<env
name=
"database.tests.username"
value=
"
tests_user
"
/>
<env
name=
"database.tests.username"
value=
"
castopod
"
/>
<env
name=
"database.tests.password"
value=
"
p
as
swor
d"
/>
<env
name=
"database.tests.password"
value=
"
c
as
topo
d"
/>
<env
name=
"database.tests.DBDriver"
value=
"MySQLi"
/>
<env
name=
"database.tests.DBDriver"
value=
"MySQLi"
/>
<env
name=
"database.tests.DBPrefix"
value=
"tests_"
/>
<env
name=
"database.tests.DBPrefix"
value=
"tests_"
/>
<env
name=
"REST_API_ENABLED"
value=
"1"
/>
<env
name=
"REST_API_ENABLED"
value=
"1"
/>
...
...
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