Test cross compilation
@@ -45,7 +45,7 @@ fmt:
$(GO) fmt $(PACKAGES)
.PHONY: tests
-tests: test vet lint errcheck megacheck
+tests: test-cross test vet lint errcheck megacheck
.PHONY: vet
vet:
@@ -76,6 +76,12 @@ megacheck:
test:
STATUS=0; for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || STATUS=1; done; exit $$STATUS
+.PHONY: test-cross
+test-cross:
+ GOOS=linux GOARCH=amd64 $(GO) build
+ GOOS=darwin GOARCH=amd64 $(GO) build
+ GOOS=windows GOARCH=amd64 $(GO) build
+
.PHONY: test-integration
test-integration: clean build
cd tests && GOPASS_BINARY=$(PWD)/$(EXECUTABLE)-$(GOOS)-$(GOARCH) GOPASS_TEST_DIR=$(PWD)/tests go test -v
