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
381ec34a
Commit
381ec34a
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Debug
parent
429a0cd3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/build-deploy.yml
+0
-7
0 additions, 7 deletions
examples/build-deploy.yml
lakedrops.yml
+1
-0
1 addition, 0 deletions
lakedrops.yml
test-and-deploy.yml
+23
-12
23 additions, 12 deletions
test-and-deploy.yml
with
24 additions
and
19 deletions
examples/build-deploy.yml
deleted
100644 → 0
+
0
−
7
View file @
429a0cd3
variables
:
DISABLE_CI_TESTS
:
1
include
:
-
project
:
'
gitlab-ci-cd/drupal'
ref
:
main
file
:
'
/examples/build-test-deploy.yml'
This diff is collapsed.
Click to expand it.
lakedrops.yml
+
1
−
0
View file @
381ec34a
...
...
@@ -65,6 +65,7 @@ LakeDrops:
INITIALINSTALL
:
${INITIALINSTALL}
RESETLOCALE
:
${RESETLOCALE}
SKIPCONFIGIMPORT
:
${SKIPCONFIGIMPORT}
TESTSDISABLED
:
${TESTSDISABLED}
VERSIONPATTERN
:
${VERSIONPATTERN}
trigger
:
include
:
...
...
This diff is collapsed.
Click to expand it.
test-and-deploy.yml
+
23
−
12
View file @
381ec34a
...
...
@@ -125,7 +125,10 @@ Debug:
GIT_STRATEGY
:
none
script
:
|
DBREQUIRED="no"
if [[ "$CI_COMMIT_REF_NAME" == "main" ]]; then
TESTSDISABLED="no"
if [[ "$DISABLE_CI_TESTS" == "1" ]]; then
TESTSDISABLED="yes"
elif [[ "$CI_COMMIT_REF_NAME" == "main" ]]; then
DBREQUIRED="yes"
elif [[ "$CI_COMMIT_MESSAGE" == *"[PULL_DB]"* ]]; then
DBREQUIRED="yes"
...
...
@@ -147,12 +150,6 @@ Debug:
rm /tmp/test.log
fi
fi
echo "DBREQUIRED=${DBREQUIRED}" >> validation.env
if [[ "$DBREQUIRED" == "yes" ]]; then
echo "DB needs to be pulled."
else
echo "No pulling required."
fi
INITIALINSTALL="no"
if [[ "$CI_COMMIT_MESSAGE" == *"[INITIAL_INSTALL]"* ]]; then
...
...
@@ -160,13 +157,11 @@ Debug:
elif [[ "$INITIAL_INSTALL" == "yes" ]]; then
INITIALINSTALL="yes"
fi
echo "INITIALINSTALL=${INITIALINSTALL}" >> validation.env
DEPLOYSCRIPT="drupal-deploy"
if [[ "$INITIALINSTALL" == "yes" ]]; then
DEPLOYSCRIPT="drupal-config"
fi
echo "DEPLOYSCRIPT=${DEPLOYSCRIPT}" >> validation.env
RESETLOCALE="no"
if [[ "$CI_COMMIT_MESSAGE" == *"[RESET_LOCALE]"* ]]; then
...
...
@@ -174,16 +169,22 @@ Debug:
elif [[ "$RESET_LOCALE" == "yes" ]]; then
RESETLOCALE="yes"
fi
echo "RESETLOCALE=${RESETLOCALE}" >> validation.env
VERSIONPATTERN=$(date +"cd-%Y-%m-%d-%H-%M")
echo "VERSIONPATTERN=${VERSIONPATTERN}" >> validation.env
SKIPCONFIGIMPORT="no"
if [[ "$CI_COMMIT_MESSAGE" == *"[SKIP_CONFIG_IMPORT]"* ]]; then
SKIPCONFIGIMPORT="yes"
fi
echo "DBREQUIRED=${DBREQUIRED}" > validation.env
echo "TESTSDISABLED=${TESTSDISABLED}" >> validation.env
echo "INITIALINSTALL=${INITIALINSTALL}" >> validation.env
echo "DEPLOYSCRIPT=${DEPLOYSCRIPT}" >> validation.env
echo "RESETLOCALE=${RESETLOCALE}" >> validation.env
echo "VERSIONPATTERN=${VERSIONPATTERN}" >> validation.env
echo "SKIPCONFIGIMPORT=${SKIPCONFIGIMPORT}" >> validation.env
cat validation.env
before_script
:
!reference
[
.prepareaccess
,
before_script
]
except
:
refs
:
...
...
@@ -275,7 +276,7 @@ Debug:
when
:
always
<<
:
*artifact_paths
rules
:
-
if
:
'
$DISABLE
_CI_TESTS
!
=
"
1
"'
-
if
:
'
$
TESTS
DISABLE
D
=
=
"
no
"'
.theme
:
stage
:
build
...
...
@@ -334,6 +335,8 @@ Debug:
when
:
never
-
if
:
'
$INITIALINSTALL
==
"yes"'
when
:
never
-
if
:
'
$TESTSDISABLED
==
"no"'
when
:
never
-
if
:
'
$DISABLE_CI_TESTS
!=
"1"'
.dumpdbNG
:
...
...
@@ -362,6 +365,8 @@ Debug:
when
:
never
-
if
:
'
$INITIALINSTALL
==
"yes"'
when
:
never
-
if
:
'
$TESTSDISABLED
==
"no"'
when
:
never
-
if
:
'
$DISABLE_CI_TESTS
!=
"1"'
.importdb
:
...
...
@@ -389,6 +394,8 @@ Debug:
when
:
never
-
if
:
'
$INITIALINSTALL
==
"yes"'
when
:
never
-
if
:
'
$TESTSDISABLED
==
"no"'
when
:
never
-
if
:
'
$DISABLE_CI_TESTS
!=
"1"'
dependencies
:
-
'
Build
Site'
...
...
@@ -419,6 +426,8 @@ Debug:
when
:
never
-
if
:
'
$INITIALINSTALL
==
"yes"'
when
:
never
-
if
:
'
$TESTSDISABLED
==
"no"'
when
:
never
-
if
:
'
$DISABLE_CI_TESTS
!=
"1"'
dependencies
:
-
'
Build
Site'
...
...
@@ -442,6 +451,8 @@ Debug:
when
:
never
-
if
:
'
$INITIALINSTALL
==
"yes"'
when
:
never
-
if
:
'
$TESTSDISABLED
==
"no"'
when
:
never
-
if
:
'
$DISABLE_CI_TESTS
!=
"1"'
dependencies
:
-
'
Build
Site'
...
...
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