#!/bin/bash
set -e

# setup the current repo as a package - super hax.
mkdir -p gopath/src/github.com/buildboxhq
ln -s `pwd` gopath/src/github.com/buildboxhq/buildbox-agent
export GOPATH="$GOPATH:`pwd`/gopath"

echo '--- go version'
go version

echo '--- install dependencies'
go get github.com/tools/godep
godep restore

echo '--- golint'
go get github.com/golang/lint/golint
make lint

echo '--- tests'
make test

echo '--- building packages'
make build

#!/bin/bash
set -e

# setup the current repo as a package - super hax.
mkdir -p gopath/src/github.com/buildboxhq
ln -s `pwd` gopath/src/github.com/buildboxhq/buildbox-agent
export GOPATH="`pwd`/gopath:$GOPATH"

echo '--- go version'
go version

echo '--- install dependencies'
go get github.com/tools/godep
godep restore

echo '--- golint'
go get github.com/golang/lint/golint
make lint

echo '--- tests'
make test

echo '--- building packages'
make build

--- 
+++ 
@@ -4,7 +4,7 @@
 # setup the current repo as a package - super hax.
 mkdir -p gopath/src/github.com/buildboxhq
 ln -s `pwd` gopath/src/github.com/buildboxhq/buildbox-agent
-export GOPATH="$GOPATH:`pwd`/gopath"
+export GOPATH="`pwd`/gopath:$GOPATH"
 
 echo '--- go version'
 go version
Append our custom GOPATH to the end.
