From 4b2cd555743d63034faab9732757857e3122a1be Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 6 Nov 2018 14:40:59 +0900 Subject: [PATCH] add test_ci for travis-ci --- .travis.yml | 2 +- Makefile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2e1239e..211c10c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ addons: packages: - libgmp-dev script: - - make test DEBUG=1 -j3 + - make test_ci DEBUG=1 -j3 - make clean - make test_go diff --git a/Makefile b/Makefile index 7d845ed..e8fbd7e 100644 --- a/Makefile +++ b/Makefile @@ -269,6 +269,8 @@ SAMPLE_EXE=$(addprefix $(EXE_DIR)/,$(addsuffix .exe,$(basename $(SAMPLE_SRC)))) sample: $(SAMPLE_EXE) $(MCL_LIB) TEST_EXE=$(addprefix $(EXE_DIR)/,$(TEST_SRC:.cpp=.exe)) +test_ci: + @sh -ec 'for i in $(TEST_EXE); do echo $$i; $$i; done' test: $(TEST_EXE) @echo test $(TEST_EXE) @sh -ec 'for i in $(TEST_EXE); do $$i|grep "ctest:name"; done' > result.txt