2020-04-13 14:25:24 +00:00
|
|
|
NOMAD_SHA ?= $(shell git rev-parse HEAD)
|
2020-04-28 20:15:58 +00:00
|
|
|
PKG_PATH = $(shell pwd)/../../pkg/linux_amd64/nomad
|
2020-04-09 14:54:30 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-04-28 20:15:58 +00:00
|
|
|
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
|
|
|
|
|
2020-04-09 14:54:30 +00:00
|
|
|
clean:
|
|
|
|
terraform destroy -auto-approve
|