Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal_cms
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_cms
Commits
cae0f9c6
Commit
cae0f9c6
authored
3 months ago
by
James Sansbury
Committed by
Adam G-H
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3497746
by q0rban, penyaskito: Tugboat previews fail due to missing file
parent
243b5c94
No related branches found
Branches containing commit
Tags
1.0.3
Tags containing commit
1 merge request
!383
Issue #3497746: Tugboat config: fix path to composer.json and use jq instead of sed
Pipeline
#389231
passed
3 months ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ddev/homeadditions/bin/generate-composer-json
+1
-1
1 addition, 1 deletion
.ddev/homeadditions/bin/generate-composer-json
.tugboat/config.yml
+8
-7
8 additions, 7 deletions
.tugboat/config.yml
with
9 additions
and
8 deletions
.ddev/homeadditions/bin/generate-composer-json
+
1
−
1
View file @
cae0f9c6
...
...
@@ -16,7 +16,7 @@ $data = array_merge_recursive(
);
// If in a CI environment, make all path repository URLs absolute.
if
(
getenv
(
'CI'
))
{
if
(
getenv
(
'CI'
)
||
getenv
(
'TUGBOAT_PREVIEW'
)
)
{
array_walk
(
$data
[
'repositories'
],
function
(
array
&
$repository
):
void
{
if
(
$repository
[
'type'
]
===
'path'
)
{
$repository
[
'url'
]
=
getcwd
()
.
'/'
.
$repository
[
'url'
];
...
...
This diff is collapsed.
Click to expand it.
.tugboat/config.yml
+
8
−
7
View file @
cae0f9c6
...
...
@@ -9,17 +9,19 @@ services:
-
docker-php-ext-install opcache
-
a2enmod headers rewrite
update
:
# There is currently an issue with Composer 2.8.1, so we install 2.8.0.
# TODO: remove this line when the upstream Composer issue is resolved.
-
composer self-update 2.8.0
# Add the components as globally available path repositories, simulating Packagist.
-
'
sed
"s|\"url\":
\"|\"url\":
\"$TUGBOAT_ROOT/|g"
components.composer.json
>
$(composer
config
--global
home)/config.json'
# Add the project template as a globally available path repository, simulating Packagist.
-
composer config --global repositories.template path $TUGBOAT_ROOT/project_template
# Clean up from any previous build.
-
rm -Rf $TUGBOAT_ROOT/project
# Create the project.
-
composer create-project drupal/cms $TUGBOAT_ROOT/project --stability=dev
-
composer create-project drupal/cms $TUGBOAT_ROOT/project --stability=dev --no-install
# Generate `composer.json` by merging our dev requirements into the project template.
-
.ddev/homeadditions/bin/generate-composer-json > $TUGBOAT_ROOT/project/composer.json
# TODO: remove this when https://www.drupal.org/project/drupal_cms/issues/3497781 lands
# Temporary workaround to bypass scaffolding the XB demo
-
composer config --working-dir=$TUGBOAT_ROOT/project --unset extra.drupal-scaffold.file-mapping
# Run composer install with the new composer.json
-
composer install --working-dir=$TUGBOAT_ROOT/project --optimize-autoloader
# Symlink the Drupal root to the Apache web root.
-
ln -snf $TUGBOAT_ROOT/project/web $DOCROOT
# Create the files directory and settings.php files with appropriate perms.
...
...
@@ -32,7 +34,6 @@ services:
-
chmod 2775 $TUGBOAT_ROOT/project_template
-
chgrp -R www-data $TUGBOAT_ROOT/project_template
-
chmod g+w $TUGBOAT_ROOT/project_template/web
-
chmod g+w $TUGBOAT_ROOT/project_template/vendor
# Disable PHP memory limit for Drush.
-
|
echo "if (PHP_SAPI === 'cli') {
...
...
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