add test_ci for travis-ci

dev
MITSUNARI Shigeo 6 years ago
parent 4aa35a2284
commit 4b2cd55574
  1. 2
      .travis.yml
  2. 2
      Makefile

@ -9,7 +9,7 @@ addons:
packages: packages:
- libgmp-dev - libgmp-dev
script: script:
- make test DEBUG=1 -j3 - make test_ci DEBUG=1 -j3
- make clean - make clean
- make test_go - make test_go

@ -269,6 +269,8 @@ SAMPLE_EXE=$(addprefix $(EXE_DIR)/,$(addsuffix .exe,$(basename $(SAMPLE_SRC))))
sample: $(SAMPLE_EXE) $(MCL_LIB) sample: $(SAMPLE_EXE) $(MCL_LIB)
TEST_EXE=$(addprefix $(EXE_DIR)/,$(TEST_SRC:.cpp=.exe)) 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) test: $(TEST_EXE)
@echo test $(TEST_EXE) @echo test $(TEST_EXE)
@sh -ec 'for i in $(TEST_EXE); do $$i|grep "ctest:name"; done' > result.txt @sh -ec 'for i in $(TEST_EXE); do $$i|grep "ctest:name"; done' > result.txt

Loading…
Cancel
Save