Skip to content

Commit 455c78d

Browse files
committed
Update fastfile
1 parent 554aabd commit 455c78d

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

fastlane/Fastfile

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ lane :release do |options|
1616
raise "Aborted by user".red
1717
end
1818

19-
runalltests
19+
if options[:skip_tests] != true
20+
runalltests
21+
else
22+
Helper.log.info "Skipping tests!".yellow
23+
end
2024

21-
archivePath = '/tmp/rswift.xcarchive'
25+
archivePath = 'rswift.xcarchive'
2226

2327
xcodebuild(
2428
workspace: 'R.swift.xcworkspace',
@@ -60,7 +64,15 @@ lane :release do |options|
6064
insert_at_bottom: false
6165
)
6266

63-
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")
67+
zipPath = "/tmp/rswift-#{newVersion}.zip"
68+
sh "rm -f #{zipPath}"
69+
70+
junk_zip(
71+
paths: ["#{archivePath}/Products/usr/local/bin/rswift", "./License"],
72+
output_path: zipPath
73+
)
74+
75+
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")
6476
raise "Aborted by user".red
6577
end
6678

@@ -83,11 +95,6 @@ lane :release do |options|
8395
prerelease: isPrerelease
8496
)
8597

86-
zipPath = junk_zip(
87-
paths: ["#{archivePath}/Products/usr/local/bin/rswift", "./License"],
88-
output_path: "/tmp/rswift-#{newVersion}.zip"
89-
)
90-
9198
af_upload_asset_for_github_release(
9299
file_path: zipPath
93100
)

0 commit comments

Comments
 (0)