diff options
author | Jordan Kiley <jmkiley@users.noreply.github.com> | 2018-11-08 10:56:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-08 10:56:44 -0800 |
commit | 7cbd31e4561fd3fa8eaea20b16e7bf4192f9d072 (patch) | |
tree | f93c312d762a55ad9650dc9ae1a40b1ac7483146 | |
parent | 30cec1b844a59449efb42da22598b7b04e7a8a3c (diff) | |
download | qtlocation-mapboxgl-7cbd31e4561fd3fa8eaea20b16e7bf4192f9d072.tar.gz |
Switch code coverage system to CodeCov (#13297)
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | circle.yml | 6 | ||||
-rw-r--r-- | codecov.yml | 4 | ||||
-rwxr-xr-x | platform/linux/scripts/coveralls.sh | 28 |
4 files changed, 9 insertions, 31 deletions
@@ -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" |