<commit_before>#!/bin/sh

pushd `dirname $0` > /dev/null
base=$(pwd -P)
popd > /dev/null

export GOPATH=$base/gogo
mkdir -p $GOPATH

###

go get github.com/venicegeo/pz-alerter

go test -v github.com/venicegeo/pz-alerter

go install github.com/venicegeo/pz-alerter

###

exe=$GOPATH/bin/pz-alerter

# gather some data about the repo
source $base/vars.sh

# do we have this artifact in s3? If not, upload it.
aws s3 ls $S3URL || aws s3 cp $exe $S3URL

# success if we have an artifact stored in s3.
aws s3 ls $S3URL<commit_msg>add pkg deps for testing<commit_after>#!/bin/sh

pushd `dirname $0` > /dev/null
base=$(pwd -P)
popd > /dev/null

export GOPATH=$base/gogo
mkdir -p $GOPATH

###

go get github.com/venicegeo/pz-alerter

go get github.com/stretchr/testify/assert
go get github.com/stretchr/testify/suite
go test -v github.com/venicegeo/pz-alerter

go install github.com/venicegeo/pz-alerter

###

exe=$GOPATH/bin/pz-alerter

# gather some data about the repo
source $base/vars.sh

# do we have this artifact in s3? If not, upload it.
aws s3 ls $S3URL || aws s3 cp $exe $S3URL

# success if we have an artifact stored in s3.
aws s3 ls $S3URL
{'fraction_non_alphanumeric': 0.12216404886561955, 'fraction_numerical': 0.015706806282722512, 'mean_word_length': 3.6816326530612247, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2987545', 'n_tokens_mistral': 487, 'n_tokens_neox': 463, 'n_words': 141}