Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab_templates
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
gitlab_templates
Merge requests
!348
#3503613
Check if project already contains _WEB_ROOT directory
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
#3503613
Check if project already contains _WEB_ROOT directory
issue/gitlab_templates-3503613:3503613-refine-symlink-list
into
main
Overview
0
Commits
3
Pipelines
3
Changes
1
Merged
Jonathan Smith
requested to merge
issue/gitlab_templates-3503613:3503613-refine-symlink-list
into
main
2 months ago
Overview
0
Commits
3
Pipelines
3
Changes
1
Expand
Closes
#3503613
0
0
Merge request reports
Compare
main
version 2
67688e34
2 months ago
version 1
f218b725
2 months ago
main (base)
and
latest version
latest version
67688e34
3 commits,
2 months ago
version 2
67688e34
3 commits,
2 months ago
version 1
f218b725
2 commits,
2 months ago
1 file
+
8
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
includes/include.drupalci.main.yml
+
8
−
2
Options
@@ -195,8 +195,8 @@
[[ $_TARGET_DB_TYPE == "mariadb" ]] && export SIMPLETEST_DB=mysql://$MYSQL_USER:$MYSQL_PASSWORD@database/$MYSQL_DATABASE
.setup-webserver
:
&setup-webserver
-
mkdir -p $BROWSERTEST_OUTPUT_DIRECTORY
-
mkdir -p $CI_PROJECT_DIR/$_WEB_ROOT/sites/default/files/simpletest
-
mkdir -p
v
$BROWSERTEST_OUTPUT_DIRECTORY
-
mkdir -p
v
$CI_PROJECT_DIR/$_WEB_ROOT/sites/default/files/simpletest
-
chmod -R 755 $BROWSERTEST_OUTPUT_DIRECTORY
-
chmod -R 755 $CI_PROJECT_DIR/$_WEB_ROOT/sites/default/files/simpletest
-
ln -s $CI_PROJECT_DIR/$_WEB_ROOT /var/www/html
@@ -461,6 +461,12 @@ stages:
-
*show-ci-variables
-
*show-environment-variables
-
*add-composer-drupal-lenient
# Check if the project already has an existing directory which will clash with $_WEB_ROOT. If it does, fail the job.
-
test -d "$_WEB_ROOT" && echo -e "$DIVIDER\nThis project contains a top-level directory named '$_WEB_ROOT'
which is the same as the variable _WEB_ROOT. This variable defines the location for installing Drupal core
and the clash may cause some jobs to fail or give misleading results.\n \nTo resolve this, you can either
rename the directory within your project or set a different custom value for the _WEB_ROOT variable. The
name can be anything other than an existing directory in your project.$DIVIDER" && exit 1;
# Save the initial list of top-level files and folders. This will be just the project's own, nothing more.
# Use -A to include the hidden files but not . and ..
-
export PROJECT_FILES=$(ls -A)
Loading