Skip to content

Instantly share code, notes, and snippets.

@FranzBusch
Last active April 29, 2017 19:59
Show Gist options
  • Save FranzBusch/beb942d2aefaafa3663d82ab8ddc8e9b to your computer and use it in GitHub Desktop.
Save FranzBusch/beb942d2aefaafa3663d82ab8ddc8e9b to your computer and use it in GitHub Desktop.
Fastfile for automatic pod release
fastlane_version "2.28.4"
default_platform :ios
platform :ios do
before_all do
ensure_git_status_clean
xcversion version: "~> 8.3"
end
after_all do |lane, options|
clean_up
end
error do |lane, exception|
clean_up
end
####### Private Lanes #######
private_lane :clean_up do
clean_build_artifacts
reset_git_repo(
skip_clean: true
)
end
####### Testing #######
desc "Runs all the tests"
lane :tests do
scan(
workspace: "Example/Podname.xcworkspace",
scheme: "Podname-Example",
devices: ["iPhone 7 Plus"],
code_coverage: true,
clean: true
)
sh "curl -s https://codecov.io/bash | bash -s -- -J 'Podname'"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment