You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2020/02/05 08:42:24 UTC
[incubator-annotator] 02/02: Add test and distcheck targets
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit f11180bf42dcf3297d4e99666824bb1467ad03e6
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Tue Feb 4 22:23:56 2020 -0800
Add test and distcheck targets
---
Makefile | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 1ea7352..9f085f7 100644
--- a/Makefile
+++ b/Makefile
@@ -57,10 +57,14 @@ build:
clean:
@yarn run clean
+.PHONY: test
+test: build
+ @yarn test
+
ifeq ($(vsn_tag),)
.PHONY: dist
-dist:
+dist distcheck:
$(error No tag found for release)
else
@@ -79,4 +83,9 @@ dist:
> apache-annotator-$(annotator_vsn)$(vsn_pre)-incubating.tar.gz.sha512
@echo "Done: apache-annotator-$(annotator_vsn)$(vsn_pre)-incubating.tar.gz"
+.PHONY: distcheck
+distcheck: dist
+ @tar xzf apache-annotator-$(annotator_vsn)$(vsn_pre)-incubating.tar.gz
+ @make -C apache-annotator-$(annotator_vsn)-incubating test
+
endif