Skip to content

Commit

Permalink
Update fastfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-cain13 committed May 7, 2016
1 parent 554aabd commit 455c78d
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ lane :release do |options|
raise "Aborted by user".red
end

runalltests
if options[:skip_tests] != true
runalltests
else
Helper.log.info "Skipping tests!".yellow
end

archivePath = '/tmp/rswift.xcarchive'
archivePath = 'rswift.xcarchive'

xcodebuild(
workspace: 'R.swift.xcworkspace',
Expand Down Expand Up @@ -60,7 +64,15 @@ lane :release do |options|
insert_at_bottom: false
)

unless prompt(text: "#{newVersion} has been prepped for release. If you have any additional changes you would like to make, please do those before continuing. Would you like to commit, tag, push and release #{newVersion} including all uncommitted changes?".green, boolean: true, ci_input:"y")
zipPath = "/tmp/rswift-#{newVersion}.zip"
sh "rm -f #{zipPath}"

junk_zip(
paths: ["#{archivePath}/Products/usr/local/bin/rswift", "./License"],
output_path: zipPath
)

unless prompt(text: "#{newVersion} has been build and prepped for release. If you have any additional changes you would like to make, please do those before continuing. Would you like to commit, tag, push and release #{newVersion} including all uncommitted changes?".green, boolean: true, ci_input:"y")
raise "Aborted by user".red
end

Expand All @@ -83,11 +95,6 @@ lane :release do |options|
prerelease: isPrerelease
)

zipPath = junk_zip(
paths: ["#{archivePath}/Products/usr/local/bin/rswift", "./License"],
output_path: "/tmp/rswift-#{newVersion}.zip"
)

af_upload_asset_for_github_release(
file_path: zipPath
)
Expand Down

0 comments on commit 455c78d

Please sign in to comment.