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:
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
After cloning the submodule you can try running
fastlane action codecov for details.
use_xcodeplist: Codecov’s beta feature (default
project_name: The project name to be used by the
token: The API token for private repos