Skip to content

Commit

Permalink
Write tiny bash script to test Terraform submodule. (GoogleCloudPlatf…
Browse files Browse the repository at this point in the history
…orm#372)

* Write tiny bash script to properly test Terraform.

* Remove locking.
  • Loading branch information
nat-henderson committed Jul 26, 2018
1 parent 8e30719 commit 93bb224
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tasks/submodules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@
TEST_RUNNER = {
puppet: 'rake test',
chef: 'rake test',
ansible: 'exit 1'
ansible: 'exit 1',
# Terraform is more complicated since go tests need to be run from within
# a GOPATH.
terraform: 'GOPATH=`mktemp -d`/go;'\
'mkdir -p $GOPATH/src/github.com/terraform-providers/;'\
'ln -s $PWD $GOPATH/src/github.com/terraform-providers/terraform-provider-google;'\
'cd $GOPATH/src/github.com/terraform-providers/terraform-provider-google;'\
'go get; make test'
}.freeze

def test_module(provider, mod)
Expand Down

0 comments on commit 93bb224

Please sign in to comment.