Codecov Fastlane Action

November 01, 2017

Fork me on GitHub

I recently had to configure Fastlane to run in the ReCaptcha project. Since we were already uploading coverage reports to Codecov, it would be interesting if we kept using it.

After tweaking a bit with their default command, because Fastlane kept complaining about syntax error, I came up with the following command:

1
curl -s https://codecov.io/bash | bash -s -- -J 'ReCaptcha'

Hey, since we’re running a shell command, why not transform it into a proper action so everybody can use it, right? Unfortunately, Fastlane is not accepting actions, also, this action would fall into the “third party service” category and it wouldn’t be accepted anyway.

So let’s share it on Github! Since, it’s just a single file, I’ve created a gist that can be added as a submodule to your Fastlane actions folder:

After cloning the submodule you can try running fastlane action codecov for details.

Arguments:

  • use_xcodeplist: Codecov’s beta feature (default false)
  • project_name: The project name to be used by the -J argument
  • token: The API token for private repos

Enjoy!

The Simplest Throttle/Debounce You'll Ever See

One of these days I needed a _debounce_ on Swift to ensure some block of codewould only be executed once in a period of time. _Debounces_ …… Continue reading

ReCaptcha Reaches 1.0

Published on November 13, 2017