<commit_before>#!/bin/sh

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

export GOPATH=$base/gogo
mkdir -p $GOPATH
export GOROOT=/opt/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

###

export GO15VENDOREXPERIMENT=1
go version

go get -v github.com/venicegeo/pzsvc-pdal

go test -v github.com/venicegeo/pzsvc-pdal

go install -v github.com/venicegeo/pzsvc-pdal

###

exe=$GOPATH/bin/pzsvc-pdal

# 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>Jenkins AMI rebuilt with updated Go, should not need to set env vars<commit_after>#!/bin/sh

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

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

###

export GO15VENDOREXPERIMENT=1

go get -v github.com/venicegeo/pzsvc-pdal

go test -v github.com/venicegeo/pzsvc-pdal

go install -v github.com/venicegeo/pzsvc-pdal

###

exe=$GOPATH/bin/pzsvc-pdal

# 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.11942675159235669, 'fraction_numerical': 0.01910828025477707, 'mean_word_length': 3.779467680608365, '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': '4764157', 'n_tokens_mistral': 559, 'n_tokens_neox': 526, 'n_words': 157}