Skip to content

Commit

Permalink
Enable events v2 integration test (cadence-workflow#1597)
Browse files Browse the repository at this point in the history
  • Loading branch information
meiliang86 authored Apr 1, 2019
1 parent 42d9b38 commit 7ff4c02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ matrix:
- go: "1.11.1"
env:
- TEST_SUITE=integration
- go: "1.11.1"
env:
- TEST_SUITE=integration
- EVENTSV2=true
- go: "1.11.1"
env:
- TEST_SUITE=xdc
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ INTEG_TEST_DIR=host
INTEG_TEST_XDC_ROOT=./hostxdc
INTEG_TEST_XDC_DIR=hostxdc

ifndef EVENTSV2
override EVENTSV2 = false
endif

define thriftrwrule
THRIFTRW_GEN_SRC += $(THRIFT_GENDIR)/go/$1/$1.go

Expand Down Expand Up @@ -140,9 +144,9 @@ cover_integration_profile: clean bins_nothrift
@mkdir -p $(BUILD)
@echo "mode: atomic" > $(BUILD)/cover.out

@echo Running integration test
@echo Running integration test with eventsV2 $(EVENTSV2)
@mkdir -p $(BUILD)/$(INTEG_TEST_DIR)
@time go test $(INTEG_TEST_ROOT) $(TEST_ARG) $(GOCOVERPKG_ARG) -coverprofile=$(BUILD)/$(INTEG_TEST_DIR)/coverage.out || exit 1;
@time go test $(INTEG_TEST_ROOT) $(TEST_ARG) -eventsV2=$(EVENTSV2) $(GOCOVERPKG_ARG) -coverprofile=$(BUILD)/$(INTEG_TEST_DIR)/coverage.out || exit 1;
@cat $(BUILD)/$(INTEG_TEST_DIR)/coverage.out | grep -v "mode: atomic" >> $(BUILD)/cover.out

cover_xdc_profile: clean bins_nothrift
Expand Down

0 comments on commit 7ff4c02

Please sign in to comment.