[fastlane] Create deploy lane for Fastlane

This commit is contained in:
Pedro Piñera Buendía 2016-04-29 20:21:03 +02:00
parent a093b6107a
commit d48f20f7ab
2 changed files with 19 additions and 67 deletions

View File

@ -9,6 +9,7 @@ default_platform :ios
PODSPEC = "SugarRecord.podspec"
WORKSPACE = "SugarRecord.xcworkspace"
SCHEME_TESTS = "SugarRecordTests"
REPOSITORY = "pepibumur/SugarRecord"
# Lanes
desc "Setup everything needed to work on the project"
@ -40,10 +41,21 @@ lane :ci do
end
lane :deploy do
ensure_git_branch
version = version_bump_podspec(path: PODSPEC, bump_type: "patch")
pod_push(path: PODSPEC)
# Create the commit
# Push the commit
# Push to cocoapods
changelog = changelog_from_git_commits(
between: [last_git_tag, 'HEAD'],
pretty: '- (%ae) %s',
include_merges: false
)
github_release = set_github_release(
repository_name: REPOSITORY,
api_token: ENV['GITHUB_TOKEN'],
name: "Version #{version}",
tag_name: version,
description: changelog,
commitish: "master"
)
push_to_git_remote
end

View File

@ -3,77 +3,17 @@
<testsuite name="fastlane.lanes">
<testcase classname="fastlane.lanes" name="0: Verifying required fastlane version" time="0.000522">
<testcase classname="fastlane.lanes" name="0: Verifying required fastlane version" time="0.000434">
</testcase>
<testcase classname="fastlane.lanes" name="1: default_platform" time="0.000185">
<testcase classname="fastlane.lanes" name="1: default_platform" time="0.000187">
</testcase>
<testcase classname="fastlane.lanes" name="2: Switch to setup lane" time="0.000287">
</testcase>
<testcase classname="fastlane.lanes" name="3: carthage" time="10.114897">
</testcase>
<testcase classname="fastlane.lanes" name="4: Switch to build lane" time="0.00034">
</testcase>
<testcase classname="fastlane.lanes" name="5: xcodebuild -workspace '../SugarRecord.xcworkspace' -scheme 'SugarRecord-CoreData-iOS' -configuration 'Debug' build | xcpretty" time="9.018434">
</testcase>
<testcase classname="fastlane.lanes" name="6: xcodebuild -workspace '../SugarRecord.xcworkspace' -scheme 'SugarRecord-Realm-iOS' -configuration 'Debug' build | xcpretty" time="9.834751">
</testcase>
<testcase classname="fastlane.lanes" name="7: xcodebuild -workspace '../SugarRecord.xcworkspace' -scheme 'SugarRecord-CoreData-OSX' -configuration 'Debug' build | xcpretty" time="9.677068">
</testcase>
<testcase classname="fastlane.lanes" name="8: xcodebuild -workspace '../SugarRecord.xcworkspace' -scheme 'SugarRecord-Realm-OSX' -configuration 'Debug' build | xcpretty" time="10.43936">
</testcase>
<testcase classname="fastlane.lanes" name="9: xcodebuild -workspace '../SugarRecord.xcworkspace' -scheme 'SugarRecord-CoreData-watchOS' -configuration 'Debug' build | xcpretty" time="1.073763">
</testcase>
<testcase classname="fastlane.lanes" name="10: xcodebuild -workspace '../SugarRecord.xcworkspace' -scheme 'SugarRecord-Realm-watchOS' -configuration 'Debug' build | xcpretty" time="1.060199">
</testcase>
<testcase classname="fastlane.lanes" name="11: xcodebuild -workspace '../SugarRecord.xcworkspace' -scheme 'SugarRecord-CoreData-tvOS' -configuration 'Debug' build | xcpretty" time="1.157246">
</testcase>
<testcase classname="fastlane.lanes" name="12: xcodebuild -workspace '../SugarRecord.xcworkspace' -scheme 'SugarRecord-Realm-tvOS' -configuration 'Debug' build | xcpretty" time="1.130537">
</testcase>
<testcase classname="fastlane.lanes" name="13: Switch to tests lane" time="0.000161">
</testcase>
<testcase classname="fastlane.lanes" name="14: scan" time="26.745462">
<testcase classname="fastlane.lanes" name="2: scan" time="28.226508">
</testcase>