<commit_before>#!/bin/bash

source $(dirname $0)/ci-helpers.sh

set -ex

box_add_and_vagrant_up() {
  box_type=$1
  candidate_build_number=$2

  vagrant box add cf-lite-${box_type}-ubuntu-trusty-${candidate_build_number}.box --name cf-lite --force
  vagrant up --provider=aws
}

main() {

  download_box aws ${GO_PIPELINE_COUNTER}
  box_add_and_vagrant_up aws ${GO_PIPELINE_COUNTER}
  #./bin/add-route || true

  echo PATH = $PATH
  which bosh || echo no bosh?

  echo Running CATS...

  bosh -n -u admin -p admin target `vagrant ssh-config 2>/dev/null | grep HostName | awk '{print $2}'`
  bosh -n -u admin -p admin download manifest cf-warden > cf-warden.yml
  bosh -n -u admin -p admin deployment cf-warden.yml
  bosh -n -u admin -p admin run errand acceptance_tests
}

main<commit_msg>we need to put bosh on the path<commit_after>#!/bin/bash

source $(dirname $0)/ci-helpers.sh

set -ex

box_add_and_vagrant_up() {
  box_type=$1
  candidate_build_number=$2

  vagrant box add cf-lite-${box_type}-ubuntu-trusty-${candidate_build_number}.box --name cf-lite --force
  vagrant up --provider=aws
}

main() {

  download_box aws ${GO_PIPELINE_COUNTER}
  box_add_and_vagrant_up aws ${GO_PIPELINE_COUNTER}
  #./bin/add-route || true

  echo PATH = $PATH
  which bosh || echo no bosh?

  export PATH=$PATH:/var/vcap/packages/ruby-2.1.2/2.1.2/lib/ruby/gems/2.1.0/bin

  echo Running CATS...

  bosh -n -u admin -p admin target `vagrant ssh-config 2>/dev/null | grep HostName | awk '{print $2}'`
  bosh -n -u admin -p admin download manifest cf-warden > cf-warden.yml
  bosh -n -u admin -p admin deployment cf-warden.yml
  bosh -n -u admin -p admin run errand acceptance_tests
}

main
{'fraction_non_alphanumeric': 0.12999403697078116, 'fraction_numerical': 0.011329755515802028, 'mean_word_length': 3.4157894736842107, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3172510', 'n_tokens_mistral': 686, 'n_tokens_neox': 657, 'n_words': 172}