Skip to content

Commit

Permalink
Merge pull request #3 from dhyanio/patch-1
Browse files Browse the repository at this point in the history
Update terratest_go.sh
  • Loading branch information
Sohan Yadav authored Aug 20, 2020
2 parents bfaea0c + 3f07493 commit 0ee0412
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/terratest_go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ function goTest {
echo exists
else
echo "Install Go for terratest"
wget -q -O - https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh \
| bash -s -- --version 1.14.6
wget -O go.tgz https://dl.google.com/go/go1.10.3.src.tar.gz
tar -C /usr/local -xzf go.tgz
cd /usr/local/go/src/
./make.bash
export PATH="/usr/local/go/bin:$PATH"
export GOPATH=/opt/go/
export PATH=$PATH:$GOPATH/bin
apk del .build-deps
go version

echo "Install Go package fo terratest"
go get github.com/gruntwork-io/terratest/modules/terraform github.com/stretchr/testify/assert
Expand All @@ -20,4 +27,4 @@ fi
# Gather the output of `teratest`.
echo "teratest: info: teratest run configuration in ${tfWorkingDir}"
go test -run Test --timeout 150m
}
}

0 comments on commit 0ee0412

Please sign in to comment.