From 9991ef02a5f899e0aae01a46cf33c71f85db7b18 Mon Sep 17 00:00:00 2001 From: jill-cardamon <43434254+jill-cardamon@users.noreply.github.com> Date: Thu, 10 Nov 2022 11:33:24 -0500 Subject: [PATCH] Codecov is back! (#687) * Add badge codecov badge back in. --- .circleci/config.yml | 9 ++++++--- README.md | 1 + codecov.yml | 7 +++++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c43de71c4..fb249cad8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -34,7 +34,10 @@ commands: steps: - run: name: Publish Code Coverage - command: bash <(curl -s https://codecov.io/bash) + command: | + curl -Os https://uploader.codecov.io/latest/macos/codecov + chmod +x codecov + ./codecov carthage-bootstrap: steps: - run: @@ -56,7 +59,7 @@ commands: echo "export GITHUB_TOKEN='${GITHUB_TOKEN}'" >> $BASH_ENV git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/mapbox/mapbox-directions-swift.git" git config user.email "release-bot@mapbox.com" - git config user.name "Mapbox Releases" + git config user.name "Mapbox Releases" jobs: detect-breaking-changes: @@ -172,7 +175,7 @@ jobs: default: true codecoverage: type: boolean - default: false + default: true macos: xcode: << parameters.xcode >> environment: diff --git a/README.md b/README.md index eac3e0053..2a4f80771 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![CocoaPods](https://img.shields.io/cocoapods/v/MapboxDirections.svg)](https://cocoapods.org/pods/MapboxDirections/) [![SPM compatible](https://img.shields.io/badge/SPM-compatible-4BC51D.svg?style=flat)](https://swift.org/package-manager/) +[![codecov](https://codecov.io/gh/mapbox/mapbox-directions-swift/branch/main/graph/badge.svg?token=bjr4ASuXuO)](https://codecov.io/gh/mapbox/mapbox-directions-swift) Mapbox Directions for Swift (formerly MapboxDirections.swift) makes it easy to connect your iOS, macOS, tvOS, watchOS, or Linux application to the [Mapbox Directions](https://docs.mapbox.com/api/navigation/) and [Map Matching](https://docs.mapbox.com/api/navigation/#map-matching) APIs. Quickly get driving, cycling, or walking directions, whether the trip is nonstop or it has multiple stopping points, all using a simple interface reminiscent of MapKitā€™s `MKDirections` API. Fit a GPX trace to the [OpenStreetMap](https://www.openstreetmap.org/) road network. The Mapbox Directions and Map Matching APIs are powered by the [OSRM](http://project-osrm.org/) and [Valhalla](https://github.com/valhalla/valhalla/) routing engines. For more information, see the [Mapbox Navigation](https://www.mapbox.com/navigation/) homepage. diff --git a/codecov.yml b/codecov.yml index cd1c4f779..e9e572b58 100644 --- a/codecov.yml +++ b/codecov.yml @@ -7,3 +7,10 @@ coverage: project: default: threshold: 1% + +comment: + layout: "reach, diff, flags, files" + behavior: default + require_changes: false + require_base: no + require_head: yes