<commit_before>#!/usr/bin/env bash

set -e

source /etc/profile.d/chruby.sh
chruby 2.1.2

semver=`cat version-semver/number`

mkdir out

cd bosh-cpi-release

echo "running unit tests"

pushd src/bosh_aws_cpi
  ./scripts/bundle_from_local_cache
  bundle exec rspec spec/unit/*
popd

# ensure that we have a clean git state
git status

echo "using bosh CLI version..."
bosh version

cpi_release_name="bosh-aws-cpi"

echo "building CPI release..."
bosh create release --name $cpi_release_name --version $semver --with-tarball

mv dev_releases/$cpi_release_name/$cpi_release_name-$semver.tgz ../out/
<commit_msg>Output git version.<commit_after>#!/usr/bin/env bash

set -e

source /etc/profile.d/chruby.sh
chruby 2.1.2

semver=`cat version-semver/number`

mkdir out

cd bosh-cpi-release

echo "running unit tests"

pushd src/bosh_aws_cpi
  ./scripts/bundle_from_local_cache
  bundle exec rspec spec/unit/*
popd

# ensure that we have a clean git state
git version
git status

echo "using bosh CLI version..."
bosh version

cpi_release_name="bosh-aws-cpi"

echo "building CPI release..."
bosh create release --name $cpi_release_name --version $semver --with-tarball

mv dev_releases/$cpi_release_name/$cpi_release_name-$semver.tgz ../out/

{'fraction_non_alphanumeric': 0.11102106969205834, 'fraction_numerical': 0.004862236628849271, 'mean_word_length': 4.020325203252033, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7120265', 'n_tokens_mistral': 476, 'n_tokens_neox': 451, 'n_words': 122}