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

set -e
set -x

source /etc/profile.d/chruby-with-ruby-2.1.2.sh

semver=`cat version-semver/number`

mkdir out

cd bosh-cpi-release

echo "running unit tests"
pushd src/bosh_cloudstack_cpi
  bundle install
  bundle exec rspec spec/unit/*
popd

echo "installing the latest bosh_cli"
gem install bosh_cli -v 1.3016.0 --no-ri --no-rdoc

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

cpi_release_name="bosh-cloudstack-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>comment cpi unit test in pipeline<commit_after>#!/usr/bin/env bash

set -e
set -x

source /etc/profile.d/chruby-with-ruby-2.1.2.sh

semver=`cat version-semver/number`

mkdir out

cd bosh-cpi-release


# unit tests should be launched on submodule src/bosh-cloudstack-cpi-core, as maven tests
#echo "running unit tests"
#pushd src/bosh_cloudstack_cpi
#  bundle install
#  bundle exec rspec spec/unit/*
#popd

echo "installing the latest bosh_cli"
gem install bosh_cli -v 1.3016.0 --no-ri --no-rdoc

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

cpi_release_name="bosh-cloudstack-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.1193502824858757, 'fraction_numerical': 0.012711864406779662, 'mean_word_length': 3.9719298245614034, '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': '6245013', 'n_tokens_mistral': 558, 'n_tokens_neox': 528, 'n_words': 140}