github.com/lamielle/terraform@v0.3.2-0.20141121070651-81f008ba53d5/Makefile (about) 1 TEST?=./... 2 3 default: test 4 5 bin: config/y.go 6 @sh -c "$(CURDIR)/scripts/build.sh" 7 8 dev: config/y.go 9 @TF_DEV=1 sh -c "$(CURDIR)/scripts/build.sh" 10 11 test: config/y.go 12 TF_ACC= go test $(TEST) $(TESTARGS) -timeout=10s -parallel=4 13 14 testacc: config/y.go 15 @if [ "$(TEST)" = "./..." ]; then \ 16 echo "ERROR: Set TEST to a specific package"; \ 17 exit 1; \ 18 fi 19 TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 30m 20 21 testrace: config/y.go 22 TF_ACC= go test -race $(TEST) $(TESTARGS) 23 24 updatedeps: config/y.go 25 go get -u -v ./... 26 27 config/y.go: config/expr.y 28 cd config/ && \ 29 go tool yacc -p "expr" expr.y 30 31 clean: 32 rm config/y.go 33 34 .PHONY: bin clean default test updatedeps