Skip to content

cenkce/example-swift

 
 

Repository files navigation

Codecov Swift Example

Build Status codecov.io

https://codecov.io @codecov hello@codecov.io

This repository serves as an example on how to use Codecov Global for Swift.

Usage

Enable "Gather coverage data" in your test scheme:

gather coverage data

Travis CI

Add to your .travis.yml file.

language: swift # or objective-c
osx_image: xcode7
script: ./test.sh
after_success:
  - bash <(curl -s https://codecov.io/bash)

Private Repos

Set CODECOV_TOKEN in your environment variables.

Add to your .travis.yml file.

after_success:
  - bash <(curl -s https://codecov.io/bash) -t :uuid-repo-token

Or you can set the enviornment variable CODECOV_TOKEN to your token.

Speed up the build

The uploader has a boil-the-ocean approach, which can take a longer time to complete coverage report processing. We suggest you add the following to only build reports for the project being tested:

bash <(curl -s https://codecov.io/bash) -J 'SwiftExample'

Use your project name instead of SwiftExample. You can also provide multiple arguments via -J 'ProjA' -J 'ProjB'

About

Codecov: Swift coverage example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 92.9%
  • Shell 7.1%