Skip to content

Instantly share code, notes, and snippets.

@ricardopereira
Created August 6, 2016 23:35
Show Gist options
  • Save ricardopereira/27281d89d04802a1337ef651049a632a to your computer and use it in GitHub Desktop.
Save ricardopereira/27281d89d04802a1337ef651049a632a to your computer and use it in GitHub Desktop.
fastlane_version "1.99.0"
REQUIRED_XCODE_VERSION = "7.3.1"
default_platform :ios
platform :ios do
desc "Run test suite"
lane :test do
scan project: "<APP>.xcodeproj"
end
desc "Increment the verion and build number"
lane :version_bump_project do |options|
build_number = Time.new.strftime("%Y.%m.%d.%H.%M")
increment_build_number build_number: build_number
increment_version_number bump_type: options[:bump]
end
desc "Prepare a new Release version"
lane :release do |options|
version_bump_project bump_type: options[:bump]
version_bump_podspec bump_type: options[:bump]
clean_build_artifacts
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment