Sha256: 2fe8b441bbe9c6ad18abbc6f3f4993bf52c3f0731aa66c70131ea6a4363d37e2

Contents?: true

Size: 865 Bytes

Versions: 23

Compression:

Stored size: 865 Bytes

Contents

#!/bin/sh
#
# Release a new version of this repository
#
# Usage: bin/release VERSION
#
###
set -e

if [ -z "$1" ]; then
  echo "usage: bin/release VERSION" >&2
  exit 64
fi

version=$1
old_version=$(< VERSION)

if ! bundle exec rake; then
  echo "test failure, not releasing" >&2
  exit 1
fi

printf "RELEASE %s => %s\n" "$old_version" "$version"
git checkout master
git pull

printf "%s\n" "$version" > VERSION
bundle
git add VERSION Gemfile.lock
git commit -m "Release v$version"

rake release

docker build --rm -t codeclimate/codeclimate .
docker push codeclimate/codeclimate

(cd ../homebrew-formulae/ && bin/release "$version")

echo "Be sure to update release notes:"
echo ""
echo "  https://github.com/codeclimate/codeclimate/releases/new?tag=v$version"
echo ""
echo "  https://github.com/codeclimate/codeclimate/compare/v$old_version...v$version"
echo ""

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
codeclimate-0.3.1 bin/release
codeclimate-0.3.0 bin/release
codeclimate-0.2.12 bin/release