-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Declare Drupal 11 compatibility * Use https url rather than git@ to avoid auth issues * Try testing on Drupal 11. What could possibly go wrong? * Don't uninstall the pantheon_advanced_page_cache_test at the beginning of the behat tests, since no one has installed it yet. * Updated test to visit the page. * Cache headers innacurate under behat with Drupal 11, disabling Drupal 11 tests for now. * Avoid using so many Github API requests, and instead just copy the SUT into the test site without using Composer. * Typo in variable assignment * Make sure that we do not create test site inside project directory * Skip copying dot files as a cleaner way to avoid creating a submodule. * Fix quoting of * * Use rsync to copy so that we can keep the drupal site where it was, inside the project directory. * Go back to requiring via Composer, but do so via path repository * Give path repository project an arbitrary specific version. * Ah, right, path repositories are symlinked, so they need to be included in the site repository. * Sync code can be very slow; wait longer * Speculative fix for BUGS-8929; guard against situations where Drupal\image\Entity\ImageStyle might not exist. --------- Co-authored-by: Sumit Madan <[email protected]>
- Loading branch information
1 parent
a8993fa
commit 8db7247
Showing
7 changed files
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,10 @@ | |
set -e | ||
export TERMINUS_ENV=$CIRCLE_BUILD_NUM | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
CIRCLE_DIR="$(dirname -- "${SCRIPT_DIR}")" | ||
PROJECT_DIR="$(dirname -- "${CIRCLE_DIR}")" | ||
|
||
if [ "$TERMINUS_BASE_ENV" = "dev" ]; then | ||
export TERMINUS_BASE_ENV=master | ||
fi | ||
|
@@ -18,18 +22,17 @@ git checkout -b $TERMINUS_ENV | |
# git clone command above. | ||
composer update "pantheon-upstreams/upstream-configuration" | ||
|
||
composer -- config repositories.papc vcs [email protected]:pantheon-systems/pantheon_advanced_page_cache.git | ||
# Add views_custom_cache_tag | ||
composer -- require "drupal/views_custom_cache_tag:1.x-dev" | ||
|
||
# dev-2.x does not match anything, should be 2.x-dev as per https://getcomposer.org/doc/articles/aliases.md#branch-alias. | ||
export BRANCH_PART="dev-${CIRCLE_BRANCH}" | ||
if [ $CIRCLE_BRANCH = "2.x" ]; then | ||
export BRANCH_PART="2.x-dev" | ||
fi | ||
# Composer require the given commit of this module | ||
composer -- require "drupal/views_custom_cache_tag:1.x-dev" "drupal/pantheon_advanced_page_cache:${BRANCH_PART}#${CIRCLE_SHA1}" | ||
# Make a copy of this project and rename it to use in a path repository | ||
mkdir -p path-repositories/pantheon_advanced_page_cache | ||
rsync -av --exclude='vendor' --exclude='drupal-site' "$PROJECT_DIR/"* path-repositories/pantheon_advanced_page_cache | ||
sed -e 's#"name": "drupal/pantheon_advanced_page_cache"#"version": "dev-circle", "name": "local-path/pantheon_advanced_page_cache"#' "$PROJECT_DIR/composer.json" > path-repositories/pantheon_advanced_page_cache/composer.json | ||
|
||
# Don't commit a submodule | ||
rm -rf web/modules/contrib/pantheon_advanced_page_cache/.git/ | ||
# Require via Composer, in case we need to require any dependencies in the future & etc. | ||
composer -- config repositories.papc path path-repositories/pantheon_advanced_page_cache | ||
composer -- require "local-path/pantheon_advanced_page_cache: dev-circle" | ||
|
||
# Make a git commit | ||
git add . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters