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.9.4 bin/release
codeclimate-0.9.3 bin/release
codeclimate-0.9.2 bin/release
codeclimate-0.9.1 bin/release
codeclimate-0.9.0 bin/release
codeclimate-0.8.1 bin/release
codeclimate-0.8.0 bin/release
codeclimate-0.7.2 bin/release
codeclimate-0.7.0 bin/release
codeclimate-0.6.4 bin/release
codeclimate-0.6.3 bin/release
codeclimate-0.6.2 bin/release
codeclimate-0.6.1 bin/release
codeclimate-0.6.0 bin/release
codeclimate-0.5.0 bin/release
codeclimate-0.4.4 bin/release
codeclimate-0.4.3 bin/release
codeclimate-0.4.1 bin/release
codeclimate-0.4.0 bin/release
codeclimate-0.3.2 bin/release