From 7cbd31e4561fd3fa8eaea20b16e7bf4192f9d072 Mon Sep 17 00:00:00 2001 From: Jordan Kiley Date: Thu, 8 Nov 2018 10:56:44 -0800 Subject: Switch code coverage system to CodeCov (#13297) --- README.md | 2 +- circle.yml | 6 ++++-- codecov.yml | 4 ++++ platform/linux/scripts/coveralls.sh | 28 ---------------------------- 4 files changed, 9 insertions(+), 31 deletions(-) create mode 100644 codecov.yml delete mode 100755 platform/linux/scripts/coveralls.sh diff --git a/README.md b/README.md index 1844c06b1c..05cca7bb72 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This repository hosts the cross-platform Mapbox GL Native library, plus convenie | SDK | Languages | Build status | | --------------------------------------- | ---------------------------------- | ---------------------------------------- | -| [Mapbox GL Native](INSTALL.md) | C++14 | [![Circle CI build status](https://circleci.com/gh/mapbox/mapbox-gl-native.svg?style=shield)](https://circleci.com/gh/mapbox/workflows/mapbox-gl-native/tree/master) [![Coverage Status](https://coveralls.io/repos/github/mapbox/mapbox-gl-native/badge.svg?branch=master)](https://coveralls.io/github/mapbox/mapbox-gl-native?branch=master) | +| [Mapbox GL Native](INSTALL.md) | C++14 | [![Circle CI build status](https://circleci.com/gh/mapbox/mapbox-gl-native.svg?style=shield)](https://circleci.com/gh/mapbox/workflows/mapbox-gl-native/tree/master) [![Coverage Status](https://codecov.io/gh/mapbox/mapbox-gl-native/branch/master/graph/badge.svg)](https://codecov.io/gh/mapbox/mapbox-gl-native) | | [Mapbox Maps SDK for Android](platform/android/) | Java | [![Circle CI build status](https://circleci.com/gh/mapbox/mapbox-gl-native.svg?style=shield)](https://circleci.com/gh/mapbox/workflows/mapbox-gl-native/tree/master) | | [Mapbox Maps SDK for iOS](platform/ios/) | Objective-C or Swift | [![Circle CI build status](https://circleci.com/gh/mapbox/mapbox-gl-native.svg?style=shield)](https://circleci.com/gh/mapbox/workflows/mapbox-gl-native/tree/master) | | [Mapbox Maps SDK for macOS](platform/macos/) | Objective-C, Swift, or AppleScript | [![Circle CI build status](https://circleci.com/gh/mapbox/mapbox-gl-native.svg?style=shield)](https://circleci.com/gh/mapbox/workflows/mapbox-gl-native/tree/master) | diff --git a/circle.yml b/circle.yml index 5d1c40bf66..3a81340b6d 100644 --- a/circle.yml +++ b/circle.yml @@ -819,9 +819,11 @@ jobs: - save-dependencies - run-unit-tests - run: - name: Upload coverage results to coveralls + name: Upload coverage results to codecov.io command: | - platform/linux/scripts/coveralls.sh + curl -sSfL -o codecov https://codecov.io/bash + chmod +x codecov + ./codecov -c # ------------------------------------------------------------------------------ ios-debug: diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..570d68d230 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,4 @@ +ignore: + - "test/" + - "vendor/" + \ No newline at end of file diff --git a/platform/linux/scripts/coveralls.sh b/platform/linux/scripts/coveralls.sh deleted file mode 100755 index 57affe1e28..0000000000 --- a/platform/linux/scripts/coveralls.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -set -e -set -o pipefail - -command -v lcov 2> /dev/null || { - echo "Aborting: lcov not found." - exit 1 -} - -# Collect coverage data and save it into coverage.info -lcov \ - --quiet \ - --capture \ - --no-external \ - --gcov-tool "gcov-5" \ - --directory "src/mbgl" \ - --directory "platform" \ - --directory "include/mbgl" \ - --directory "build/linux-x86_64/${BUILDTYPE}" \ - --base-directory "build/linux-x86_64/${BUILDTYPE}" \ - --output-file "build/linux-x86_64/${BUILDTYPE}/coverage.info" - -coveralls-lcov \ - --service-name="${COVERALLS_SERVICE_NAME}" \ - --repo-token="${COVERALLS_REPO_TOKEN}" \ - --service-job-id="${CIRCLE_BUILD_NUM}" \ - "build/linux-x86_64/${BUILDTYPE}/coverage.info" -- cgit v1.2.1