diff --git a/Makefile b/Makefile index 5076b89b13b..09704004574 100644 --- a/Makefile +++ b/Makefile @@ -75,6 +75,10 @@ assemble-core-release: core-unit-tests: $(call run-gradle-tasks,$(CORE_MODULES),test) +.PHONY: core-unit-tests-jacoco +core-unit-tests-jacoco: + $(call run-gradle-tasks,$(CORE_MODULES),jacocoTestReport) + .PHONY: core-publish-to-sdk-registry core-publish-to-sdk-registry: $(call run-gradle-tasks,$(CORE_MODULES),mapboxSDKRegistryUpload) @@ -115,6 +119,10 @@ assemble-ui-release: ui-unit-tests: $(call run-gradle-tasks,$(UI_MODULES),test) +.PHONY: ui-unit-tests-jacoco +ui-unit-tests-jacoco: + $(call run-gradle-tasks,$(UI_MODULES),jacocoTestReport) + .PHONY: ui-publish-to-sdk-registry ui-publish-to-sdk-registry: $(call run-gradle-tasks,$(UI_MODULES),mapboxSDKRegistryUpload) diff --git a/circle.yml b/circle.yml index 4bfb8ed8779..0ea1e54f051 100644 --- a/circle.yml +++ b/circle.yml @@ -163,8 +163,9 @@ commands: unit-tests-core: steps: - run: - name: Run Navigation Core SDK Unit Tests - command: make core-unit-tests + name: Run Navigation Core SDK Unit Tests and generate Jacoco test report + command: | + make core-unit-tests-jacoco - store-results: module_target: "libnavigation-router" - store-results: @@ -183,11 +184,18 @@ commands: unit-tests-ui: steps: - run: - name: Run Navigation UI SDK Unit Tests - command: make ui-unit-tests + name: Run Navigation UI SDK Unit Tests and generate Jacoco test report + command: | + make ui-unit-tests-jacoco - store-results: module_target: "libnavigation-ui" + codecov: + steps: + - run: + name: Post code coverage reports to Codecov.io + command: pip install --user codecov && /root/.local/bin/codecov + generate-version-name: steps: - run: @@ -328,6 +336,7 @@ jobs: - checkout - unit-tests-core - unit-tests-ui + - codecov static-analysis: working_directory: ~/code