Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
5d8131fc
Verified
Commit
5d8131fc
authored
1 year ago
by
Juraj Nemec
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3397117
by fjgarlin: SQLite testing in GitlabCI - apache2(98)Address already in use
parent
7552f8ba
No related branches found
No related tags found
1 merge request
!7330
Issue #3306390 by poker10, catch, Fabianx, pwolanin, rvtraveller: [D7]...
Pipeline
#47225
passed with warnings
1 year ago
Stage: 🪄 Lint
Stage: 🗜️ Test
Pipeline: drupal
#47235
Pipeline: drupal
#47234
Pipeline: drupal
#47233
+6
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
.gitlab-ci/pipeline.yml
+5
-5
5 additions, 5 deletions
.gitlab-ci/pipeline.yml
with
6 additions
and
6 deletions
.gitlab-ci.yml
+
1
−
1
View file @
5d8131fc
...
...
@@ -201,7 +201,7 @@ stages:
<<
:
*default-stage
variables
:
_TARGET_PHP
:
"
7.4"
_TARGET_DB
:
"
php-7.4-apache
"
_TARGET_DB
:
"
sqlite-3
"
# 'PHP 8.1 MariaDB 10.3.22':
# <<: *default-stage
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci/pipeline.yml
+
5
−
5
View file @
5d8131fc
...
...
@@ -73,7 +73,7 @@ stages:
.get-simpletest-db
:
&get-simpletest-db
-
|
# Assume SQLite unless we have another known target.
export SIMPLETEST_DB=sqlite://localhost/
subdirectory
/sites/default/files/db.sqlite
export SIMPLETEST_DB=sqlite://localhost/
$CI_PROJECT_DIR
/sites/default/files/db.sqlite
[[ $_TARGET_DB == mysql* ]] && export SIMPLETEST_DB=mysql://$MYSQL_USER:$MYSQL_PASSWORD@database/$MYSQL_DATABASE
[[ $_TARGET_DB == mariadb* ]] && export SIMPLETEST_DB=mysql://$MYSQL_USER:$MYSQL_PASSWORD@database/$MYSQL_DATABASE
[[ $_TARGET_DB == pgsql* ]] && export SIMPLETEST_DB=pgsql://$POSTGRES_USER:$POSTGRES_PASSWORD@database/$POSTGRES_DB
...
...
@@ -84,10 +84,10 @@ stages:
-
sudo -u www-data git config --global --add safe.directory $CI_PROJECT_DIR
.install-drupal
:
&install-drupal
-
/usr/local/bin/drush si -y --db-url=$SIMPLETEST_DB --clean-url=0 --account-name=admin --account-pass=drupal --account-mail=admin@example.com
-
/usr/local/bin/drush vset simpletest_clear_results '0'
-
/usr/local/bin/drush vset simpletest_verbose '1'
-
/usr/local/bin/drush en -y simpletest
-
sudo -u www-data
/usr/local/bin/drush si -y --db-url=$SIMPLETEST_DB --clean-url=0 --account-name=admin --account-pass=drupal --account-mail=admin@example.com
-
sudo -u www-data
/usr/local/bin/drush vset simpletest_clear_results '0'
-
sudo -u www-data
/usr/local/bin/drush vset simpletest_verbose '1'
-
sudo -u www-data
/usr/local/bin/drush en -y simpletest
.run-tests
:
&run-tests
script
:
...
...
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