aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDario Maiocchi <dmaiocchi@suse.com>2017-11-11 13:16:03 +0100
committerDario Maiocchi <dmaiocchi@suse.com>2017-11-13 18:15:49 +0100
commit3b93268d4b2ea1e98263b0329a3b21bed5a03ef1 (patch)
tree86bb311ca03679f725945bc36431171b45b76f08 /Makefile
parent6cca5196b383ecfbdf1162e1c3965f610bb3a95e (diff)
downloadterraform-provider-libvirt-3b93268d4b2ea1e98263b0329a3b21bed5a03ef1.tar
terraform-provider-libvirt-3b93268d4b2ea1e98263b0329a3b21bed5a03ef1.tar.gz
Add more doc about the Makefile workflow(suggested)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..a2adfead
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+default: build
+
+build: gofmtcheck
+ go build
+
+install: build
+ go install
+
+test: install
+ bash travis/run_acceptance_test.sh
+vet:
+ @echo "go vet ."
+ @go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
+ echo ""; \
+ echo "Vet found suspicious constructs. Please check the reported constructs"; \
+ echo "and fix them if necessary before submitting the code for review."; \
+ exit 1; \
+ fi
+
+golint:
+ golint ./libvirt
+gofmtcheck:
+ bash travis/gofmtcheck.sh
+
+.PHONY: build install test vet fmt golint