ci: only enable cover-compile by default in CI
so the ad-hoc make apps/appname-ct run can be faster
This commit is contained in:
parent
3e7ce6531d
commit
3aebe4a289
|
@ -52,6 +52,7 @@ jobs:
|
|||
- name: eunit
|
||||
env:
|
||||
PROFILE: ${{ matrix.profile }}
|
||||
ENABLE_COVER_COMPILE: 1
|
||||
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-${{ matrix.otp }}
|
||||
run: make eunit
|
||||
|
||||
|
@ -59,6 +60,7 @@ jobs:
|
|||
- name: proper
|
||||
env:
|
||||
PROFILE: ${{ matrix.profile }}
|
||||
ENABLE_COVER_COMPILE: 1
|
||||
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-${{ matrix.otp }}
|
||||
run: make proper
|
||||
|
||||
|
@ -102,6 +104,7 @@ jobs:
|
|||
MINIO_TAG: "RELEASE.2023-03-20T20-16-18Z"
|
||||
PROFILE: ${{ matrix.profile }}
|
||||
SUITEGROUP: ${{ matrix.suitegroup }}
|
||||
ENABLE_COVER_COMPILE: 1
|
||||
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
|
||||
run: ./scripts/ct/run.sh --ci --app ${{ matrix.app }}
|
||||
- uses: actions/upload-artifact@v3
|
||||
|
@ -144,6 +147,7 @@ jobs:
|
|||
env:
|
||||
PROFILE: ${{ matrix.profile }}
|
||||
SUITEGROUP: ${{ matrix.suitegroup }}
|
||||
ENABLE_COVER_COMPILE: 1
|
||||
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
|
||||
run: |
|
||||
make "${{ matrix.app }}-ct"
|
||||
|
|
8
Makefile
8
Makefile
|
@ -73,11 +73,11 @@ mix-deps-get: $(ELIXIR_COMMON_DEPS)
|
|||
|
||||
.PHONY: eunit
|
||||
eunit: $(REBAR) merge-config
|
||||
@ENABLE_COVER_COMPILE=1 $(REBAR) eunit --name eunit@127.0.0.1 -v -c --cover_export_name $(CT_COVER_EXPORT_PREFIX)-eunit
|
||||
@$(REBAR) eunit --name eunit@127.0.0.1 -v -c --cover_export_name $(CT_COVER_EXPORT_PREFIX)-eunit
|
||||
|
||||
.PHONY: proper
|
||||
proper: $(REBAR)
|
||||
@ENABLE_COVER_COMPILE=1 $(REBAR) proper -d test/props -c
|
||||
@$(REBAR) proper -d test/props -c
|
||||
|
||||
.PHONY: test-compile
|
||||
test-compile: $(REBAR) merge-config
|
||||
|
@ -89,7 +89,7 @@ $(REL_PROFILES:%=%-compile): $(REBAR) merge-config
|
|||
|
||||
.PHONY: ct
|
||||
ct: $(REBAR) merge-config
|
||||
@ENABLE_COVER_COMPILE=1 $(REBAR) ct --name $(CT_NODE_NAME) -c -v --cover_export_name $(CT_COVER_EXPORT_PREFIX)-ct
|
||||
@$(REBAR) ct --name $(CT_NODE_NAME) -c -v --cover_export_name $(CT_COVER_EXPORT_PREFIX)-ct
|
||||
|
||||
## only check bpapi for enterprise profile because it's a super-set.
|
||||
.PHONY: static_checks
|
||||
|
@ -110,7 +110,7 @@ define gen-app-ct-target
|
|||
$1-ct: $(REBAR) merge-config clean-test-cluster-config
|
||||
$(eval SUITES := $(shell $(SCRIPTS)/find-suites.sh $1))
|
||||
ifneq ($(SUITES),)
|
||||
ENABLE_COVER_COMPILE=1 $(REBAR) ct -c -v \
|
||||
@$(REBAR) ct -c -v \
|
||||
--readable=$(CT_READABLE) \
|
||||
--name $(CT_NODE_NAME) \
|
||||
--cover_export_name $(CT_COVER_EXPORT_PREFIX)-$(subst /,-,$1) \
|
||||
|
|
|
@ -303,6 +303,7 @@ else
|
|||
docker exec -e IS_CI="$IS_CI" \
|
||||
-e PROFILE="$PROFILE" \
|
||||
-e SUITEGROUP="${SUITEGROUP:-}" \
|
||||
-e ENABLE_COVER_COMPILE="${ENABLE_COVER_COMPILE:-}" \
|
||||
-e CT_COVER_EXPORT_PREFIX="${CT_COVER_EXPORT_PREFIX:-}" \
|
||||
-i $TTY "$ERLANG_CONTAINER" \
|
||||
bash -c "BUILD_WITHOUT_QUIC=1 make ${WHICH_APP}-ct"
|
||||
|
|
Loading…
Reference in New Issue