Skip to content

codecov/example-objc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codecov Xcode Example

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

This repository serves as an example on how to use Codecov Global for Xcode in both Objective-C and Swift.

Setup

Travis CI

Add to your .travis.yml file.

language: objective-c
script: 
  - xctool -project {{path_to_xcproject}} -scheme {{your_testing_schema}} build test -sdk iphonesimulator GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES
after_success:
  - bash <(curl -s https://codecov.io/bash)

Reference http://docs.travis-ci.com/user/languages/objective-c/

The two important parts are:

  • GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES (To have Xcode create code coverage files)
  • bash <(curl -s https://codecov.io/bash) (To upload code coverage to Codecov.io)

This is used to have Xcode output code coverage files for Codecov.io to process.

Private Repos

Set CODECOV_TOKEN in your environment variables.

Add to your .travis.yml file.

env:
  global:
    - CODECOV_TOKEN=:uuid-repo-token

after_success:
  - bash <(curl -s https://codecov.io/bash)

View source and learn more about Codecov Global Uploader

About

Codecov example for Xcode

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy