summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2017-04-03 21:47:33 -0400
committerDave Henderson <dhenderson@gmail.com>2017-04-11 23:47:41 -0400
commit67b2a11effd6984753a461e5fe06e57281d793f9 (patch)
tree3ea7e2a6f6ca1da4b58b6e8f98a9a0ff9c055366 /Makefile
parent3c0171bfb7c02639a15af75ca777fb0cd7fe84d1 (diff)
Adding some very basic integration tests
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 09170aa7..9b31cba6 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,7 @@ endef
clean:
rm -Rf $(PREFIX)/bin/*
+ rm -f $(PREFIX)/test/integration/gomplate
build-x: $(patsubst %,$(PREFIX)/bin/$(PKG_NAME)_%,$(platforms))
@@ -46,7 +47,17 @@ build: $(PREFIX)/bin/$(PKG_NAME)$(call extension,$(GOOS))
test:
$(GO) test -v -race `glide novendor`
+build-integration-image: $(PREFIX)/bin/$(PKG_NAME)_linux-amd64$(call extension,$(GOOS))
+ cp $(PREFIX)/bin/$(PKG_NAME)_linux-amd64 test/integration/gomplate
+ docker build -f test/integration/Dockerfile -t gomplate-test test/integration/
+
+test-integration-docker: build-integration-image
+ docker run -it --rm gomplate-test
+
+test-integration: build
+ @test/integration/test.sh
+
gen-changelog:
github_changelog_generator --no-filter-by-milestone --exclude-labels duplicate,question,invalid,wontfix,admin
-.PHONY: gen-changelog
+.PHONY: gen-changelog clean test build-x compress-all build-release build build-integration-image test-integration-docker