Sha256: 60ce2a740f3c0761b3457cae621ad613860de15a6d4e6421aceb529187a8cb7e

Contents?: true

Size: 1.09 KB

Versions: 51

Compression:

Stored size: 1.09 KB

Contents

#!/bin/sh
set -e

# Checkout master as we are currently have an individual commit checked out on
# a detached tree. This means when we commit later it will be on a branch
git checkout master
git reset --hard origin/master

# Init the submodule and checkout the revision pinned in `.gitmodules`
git submodule update --init

# The version of the toolkit defined by the pinned submodule
PINNED_SUBMODULE_VERSION=`cat app/assets/VERSION.txt`

# Force the submodule to pull the latest and checkout origin/master
git submodule foreach git pull origin master

# The version of the toolkit defined in the submodules master branch
NEW_SUBMODULE_VERSION=`cat app/assets/VERSION.txt`

# Install gem dependencies, run tests, publish gem
rm -f Gemfile.lock
bundle install --path "${HOME}/bundles/${JOB_NAME}"
bundle exec rake

# If the submodule has a new version string
if [ "$PINNED_SUBMODULE_VERSION" != "$NEW_SUBMODULE_VERSION" ]; then
  # Commit the updated submodule and push it to origin
  git commit -am "Bump to version $NEW_SUBMODULE_VERSION"
  git push origin master
fi

# Publish the new gem
bundle exec rake publish_gem

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
govuk_frontend_toolkit-5.0.3 jenkins.sh
govuk_frontend_toolkit-5.0.2 jenkins.sh
govuk_frontend_toolkit-5.0.1 jenkins.sh
govuk_frontend_toolkit-5.0.0 jenkins.sh
govuk_frontend_toolkit-4.18.4 jenkins.sh
govuk_frontend_toolkit-4.18.3 jenkins.sh
govuk_frontend_toolkit-4.18.2 jenkins.sh
govuk_frontend_toolkit-4.18.1 jenkins.sh
govuk_frontend_toolkit-4.18.0 jenkins.sh
govuk_frontend_toolkit-4.17.0 jenkins.sh
govuk_frontend_toolkit-4.16.1 jenkins.sh
govuk_frontend_toolkit-4.16.0 jenkins.sh
govuk_frontend_toolkit-4.15.0 jenkins.sh
govuk_frontend_toolkit-4.14.1 jenkins.sh
govuk_frontend_toolkit-4.14.0 jenkins.sh
govuk_frontend_toolkit-4.13.0 jenkins.sh
govuk_frontend_toolkit-4.12.0 jenkins.sh
govuk_frontend_toolkit-4.11.0 jenkins.sh
govuk_frontend_toolkit-4.10.0 jenkins.sh
govuk_frontend_toolkit-4.9.1 jenkins.sh