Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal
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
Container Registry
Model registry
Operate
Environments
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
GitLab CI/CD
Drupal
Commits
2d88f690
Commit
2d88f690
authored
2 weeks ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#78
Add support to always install new site for testing
parent
ba1cace9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
lakedrops-execute.yml
+3
-0
3 additions, 0 deletions
lakedrops-execute.yml
lakedrops.yml
+1
-0
1 addition, 0 deletions
lakedrops.yml
test-and-deploy.yml
+36
-0
36 additions, 0 deletions
test-and-deploy.yml
tests/lakedrops.yml
+4
-0
4 additions, 0 deletions
tests/lakedrops.yml
with
44 additions
and
0 deletions
lakedrops-execute.yml
+
3
−
0
View file @
2d88f690
...
...
@@ -43,6 +43,9 @@ Import DB NG:
Import Local DB
:
extends
:
'
.importdbLocal'
Import Install DB
:
extends
:
'
.importdbInstall'
Update DB
:
extends
:
'
.updatedb'
...
...
This diff is collapsed.
Click to expand it.
lakedrops.yml
+
1
−
0
View file @
2d88f690
variables
:
ALWAYS_INSTALL_IN_PIPELINE
:
0
COMPOSE_PROJECT_NAME
:
${PROJECT_NAME}_$CI_COMMIT_REF_SLUG
COMPOSER_EXIT_ON_PATCH_FAILURE
:
1
COMPOSER_PATCHES_SKIP_REPORTING
:
1
...
...
This diff is collapsed.
Click to expand it.
test-and-deploy.yml
+
36
−
0
View file @
2d88f690
...
...
@@ -172,6 +172,8 @@ Debug:
GITLABTESTSDISABLED="yes"
elif [[ "$DISABLE_CI_TEST_BACKSTOP" == "1" && "$DISABLE_CI_TEST_CYPRESSE2E" == "1" ]]; then
echo "DB not required"
elif [[ "$ALWAYS_INSTALL_IN_PIPELINE" == "yes" ]]; then
DBREQUIRED="yes"
elif [[ "$CI_COMMIT_REF_NAME" == "main" ]]; then
DBREQUIRED="yes"
elif [[ "$CI_COMMIT_MESSAGE" == *"[PULL_DB]"* ]]; then
...
...
@@ -437,6 +439,8 @@ Debug:
when
:
never
-
if
:
'
$LOCALDBFILE
!=
"none"'
when
:
never
-
if
:
'
$ALWAYS_INSTALL_IN_PIPELINE
==
"yes"'
when
:
never
-
if
:
'
$DISABLE_CI_TESTS
!=
"1"'
.dumpdbNG
:
...
...
@@ -469,6 +473,8 @@ Debug:
when
:
never
-
if
:
'
$LOCALDBFILE
!=
"none"'
when
:
never
-
if
:
'
$ALWAYS_INSTALL_IN_PIPELINE
==
"yes"'
when
:
never
-
if
:
'
$DISABLE_CI_TESTS
!=
"1"'
.importdb
:
...
...
@@ -486,6 +492,8 @@ Debug:
when
:
never
-
if
:
'
$LOCALDBFILE
!=
"none"'
when
:
never
-
if
:
'
$ALWAYS_INSTALL_IN_PIPELINE
==
"yes"'
when
:
never
-
if
:
'
$DISABLE_CI_TESTS
!=
"1"'
dependencies
:
-
'
Build
Site'
...
...
@@ -506,6 +514,8 @@ Debug:
when
:
never
-
if
:
'
$LOCALDBFILE
!=
"none"'
when
:
never
-
if
:
'
$ALWAYS_INSTALL_IN_PIPELINE
==
"yes"'
when
:
never
-
if
:
'
$DISABLE_CI_TESTS
!=
"1"'
dependencies
:
-
'
Build
Site'
...
...
@@ -518,6 +528,30 @@ Debug:
before_script
:
-
cp ${LOCALDBFILE} ${PROJECT_NAME}.sql.gz
-
gunzip ${PROJECT_NAME}.sql.gz
rules
:
-
if
:
'
$DBREQUIRED
==
"no"'
when
:
never
-
if
:
'
$TESTSDISABLED
==
"yes"'
when
:
never
-
if
:
'
$LOCALDBFILE
!=
"none"'
when
:
never
-
if
:
'
$ALWAYS_INSTALL_IN_PIPELINE
==
"yes"'
when
:
never
-
if
:
'
$DISABLE_CI_TESTS
!=
"1"'
dependencies
:
-
'
Build
Site'
.importdbInstall
:
stage
:
prepare
tags
:
-
default
image
:
registry.lakedrops.com/docker/gitlab-drupal-ci/php-${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}
cache
:
{}
variables
:
GIT_STRATEGY
:
fetch
script
:
-
${INITIAL_SETUP_COMMAND}
-
drush cr
rules
:
-
if
:
'
$DBREQUIRED
==
"no"'
when
:
never
...
...
@@ -525,6 +559,8 @@ Debug:
when
:
never
-
if
:
'
$LOCALDBFILE
==
"none"'
when
:
never
-
if
:
'
$ALWAYS_INSTALL_IN_PIPELINE
==
"no"'
when
:
never
-
if
:
'
$DISABLE_CI_TESTS
!=
"1"'
dependencies
:
-
'
Build
Site'
...
...
This diff is collapsed.
Click to expand it.
tests/lakedrops.yml
+
4
−
0
View file @
2d88f690
...
...
@@ -69,6 +69,8 @@ Test Backstop:
optional
:
true
-
job
:
Import Local DB
optional
:
true
-
job
:
Import Install DB
optional
:
true
-
job
:
Update DB
optional
:
true
script
:
...
...
@@ -96,6 +98,8 @@ Test Cypress E2E:
optional
:
true
-
job
:
Import Local DB
optional
:
true
-
job
:
Import Install DB
optional
:
true
-
job
:
Update DB
optional
:
true
-
job
:
Test Backstop
...
...
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