Sha256: f76c517716603f01bfc3e85e5c82c82634f14459256aaa3521bc1331d184e0d8

Contents?: true

Size: 1.05 KB

Versions: 52

Compression:

Stored size: 1.05 KB

Contents

#!/bin/bash
#
# Release a new version of this repository.
#
# Assumes bin/prep-release was run and the PR merged.
#
# Usage: bin/release
#
###
set -e

./bin/validate-release

version=$(< VERSION)

git fetch origin master
git reset --hard origin/master

printf "RELEASE %s\n" "$version"
bundle check || bundle install

printf "############################################################################"
printf "#  The stdout will eventually hang with no message.                        #"
printf "#  It is waiting for RubyGems TFA code input, type it in and hit enter!    #"
printf "############################################################################"
printf "\n\n"
rake release

docker build --rm --tag codeclimate/codeclimate .
docker push codeclimate/codeclimate:latest
docker tag codeclimate/codeclimate "codeclimate/codeclimate:$version"
docker push "codeclimate/codeclimate:$version"

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

cat <<EOM
Be sure to update release notes:

  https://github.com/codeclimate/codeclimate/releases/new?tag=v$version

EOM

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
codeclimate-0.96.0 bin/release
codeclimate-0.95.0 bin/release
codeclimate-0.94.1 bin/release
codeclimate-0.94.0 bin/release
codeclimate-0.93.0 bin/release
codeclimate-0.92.1 bin/release
codeclimate-0.92.0 bin/release
codeclimate-0.91.0 bin/release
codeclimate-0.90.0 bin/release
codeclimate-0.89.0 bin/release
codeclimate-0.88.0 bin/release
codeclimate-0.87.5 bin/release
codeclimate-0.87.4 bin/release
codeclimate-0.87.3 bin/release
codeclimate-0.87.2 bin/release
codeclimate-0.87.1 bin/release
codeclimate-0.87.0 bin/release
codeclimate-0.86.0 bin/release
codeclimate-0.85.29 bin/release
codeclimate-0.85.28 bin/release