Switch code coverage system to CodeCov (#13297)
This commit is contained in:
@@ -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 | [](https://circleci.com/gh/mapbox/workflows/mapbox-gl-native/tree/master) [](https://coveralls.io/github/mapbox/mapbox-gl-native?branch=master) |
|
||||
| [Mapbox GL Native](INSTALL.md) | C++14 | [](https://circleci.com/gh/mapbox/workflows/mapbox-gl-native/tree/master) [](https://codecov.io/gh/mapbox/mapbox-gl-native) |
|
||||
| [Mapbox Maps SDK for Android](platform/android/) | Java | [](https://circleci.com/gh/mapbox/workflows/mapbox-gl-native/tree/master) |
|
||||
| [Mapbox Maps SDK for iOS](platform/ios/) | Objective-C or Swift | [](https://circleci.com/gh/mapbox/workflows/mapbox-gl-native/tree/master) |
|
||||
| [Mapbox Maps SDK for macOS](platform/macos/) | Objective-C, Swift, or AppleScript | [](https://circleci.com/gh/mapbox/workflows/mapbox-gl-native/tree/master) |
|
||||
|
||||
@@ -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:
|
||||
|
||||
4
codecov.yml
Normal file
4
codecov.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
ignore:
|
||||
- "test/"
|
||||
- "vendor/"
|
||||
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user