Skip to content
Snippets Groups Projects
Commit a69c2db3 authored by Adam G-H's avatar Adam G-H
Browse files

3.12.0 Release

parent 2649d59b
No related branches found
No related tags found
No related merge requests found
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -8,13 +8,15 @@ if [[ $BRANCH != release/* ]]; then
fi
VERSION=${BRANCH#release/}
# Ask git for the most recent semantic version tag, and use it as the version
# from which to update.
FROM=$(git tag --list --sort -creatordate | head -n 2 | grep -E '^(\d+.?){3}$')
./install-drupal.sh
# Destroy the database.
# Destroy the database and importing the fixture from which to update.
echo "Replacing database with $FROM snapshot..."
drush sql:drop --yes
# Import the fixture from which to update.
cd docroot
php core/scripts/db-tools.php import ../tests/fixtures/$FROM.php.gz
cd ..
......
#!/bin/bash
# Prepares a release branch.
# Example usage: DB_URL=mysql://user:password@server/db ./release-branch.sh 3.12.0
RELEASE_BRANCH=release/$1
# Ensure we are on a mainline release branch.
BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ $BRANCH =~ ^8\.x\-[0-9]+\.x$ ]]; then
CHANGE_LOG=logs/$1.md
if [[ ! -f $CHANGE_LOG ]]; then
echo "$CHANGE_LOG must exist before creating a release branch."
exit 1
fi
git pull
git fetch origin --tags
git checkout -b $RELEASE_BRANCH
cd logs
./generate.sh > ../CHANGELOG.md
cd ..
composer update
./make-fixture.sh
git add .
git commit --quiet --message "$1 Release"
git push --set-upstream origin $RELEASE_BRANCH
else
echo "This can only be done from a mainline release branch, e.g. 8.x-4.x."
exit 1
fi
#!/bin/bash
# Tags and pushes a release to origin and drupal.org.
# Example usage: ./release.sh 2.2.0 8.x-2.2
# Example usage: ./release.sh 2.2.0
SEMANTIC_VERSION=$1
DRUPAL_VERSION=$2
DRUPAL_VERSION=8.x-${1%.0}
PROJECT=${PWD##*/}
RELEASE_BRANCH=release/$SEMANTIC_VERSION
RELEASE_BRANCH=release/$1
MARKDOWN=`command -v markdown`
# Since this script does things that are pretty permanent, give the user 5
# seconds to cancel without consequences.
echo "Tagging $DRUPAL_VERSION from $RELEASE_BRANCH in 5 seconds..."
sleep 5
# Ensure we are on a mainline release branch.
BRANCH=$(git rev-parse --abbrev-ref HEAD)
......@@ -18,7 +22,7 @@ if [[ $BRANCH =~ ^8\.x\-[0-9]+\.x$ ]]; then
git remote add drupal-org git@git.drupal.org:project/$PROJECT.git
git merge --squash $RELEASE_BRANCH
git commit --all --quiet --message "$SEMANTIC_VERSION Release"
git commit --all --quiet --message "$1 Release"
git push --quiet origin
git push --quiet drupal-org
echo "Merged $RELEASE_BRANCH and pushed to origin and drupal.org."
......@@ -26,9 +30,9 @@ if [[ $BRANCH =~ ^8\.x\-[0-9]+\.x$ ]]; then
git branch -D $RELEASE_BRANCH
git push origin :$RELEASE_BRANCH
git tag $SEMANTIC_VERSION
git push --quiet origin $SEMANTIC_VERSION
echo "Tagged $SEMANTIC_VERSION and pushed to origin."
git tag $1
git push --quiet origin $1
echo "Tagged $1 and pushed to origin."
git tag $DRUPAL_VERSION
git push --quiet drupal-org $DRUPAL_VERSION
......
File added
......@@ -6,6 +6,8 @@ use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
/**
* Tests Lightning Workflow's integration with Moderation Sidebar.
*
* @group lightning_workflow
*/
class ModerationSidebarTest extends WebDriverTestBase {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment