Sha256: dfd4b377cc37d7d4599936d964d5f4ae6b6ed2bb88f2a1ee11148e4f128279f0
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 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 $PINNED_SUBMODULE_VERSION" git push origin master fi # Publish the new gem bundle exec rake publish_gem
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
govuk_frontend_toolkit-1.6.2 | jenkins.sh |
govuk_frontend_toolkit-1.6.1 | jenkins.sh |