Skip to content

Commit

Permalink
e2e: add helper to Makefile for local file deployments (#7822)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross authored Apr 28, 2020
1 parent 1bcb8f5 commit 407e02c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions e2e/terraform/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
NOMAD_SHA ?= $(shell git rev-parse HEAD)
PKG_PATH = $(shell pwd)/../../pkg/linux_amd64/nomad

dev-cluster:
terraform apply -auto-approve -var-file=terraform.tfvars.dev
terraform output provisioning | jq . > ../provisioning.json
cd .. && NOMAD_E2E=1 go test -v . -nomad.sha=$(NOMAD_SHA) -provision.terraform ./provisioning.json -skipTests
terraform output message

dev-cluster-from-local:
terraform apply -auto-approve -var-file=terraform.tfvars.dev
terraform output provisioning | jq . > ../provisioning.json
cd .. && NOMAD_E2E=1 go test -v . -nomad.local_file=$(PKG_PATH) -provision.terraform ./provisioning.json -skipTests
terraform output message

clean:
terraform destroy -auto-approve

0 comments on commit 407e02c

Please sign in to comment.