This commit is contained in:
Evgeniy Khramkov 2017-05-08 21:37:18 +03:00
Родитель 3869bf4696
Коммит 298b3bfebc
2 изменённых файлов: 2 добавлений и 12 удалений

Просмотреть файл

@ -15,9 +15,7 @@ lane :test do
api_token: ENV["TEST_MOBILE_CENTER_API_TOKEN"],
owner_name: ENV["TEST_MOBILE_CENTER_OWNER_NAME"],
app_name: "MyApplication",
apk: "./fastlane/app-release.apk",
group: ENV["TEST_MOBILE_CENTER_DISTRIBUTE_GROUP"],
release_notes: ENV["TEST_MOBILE_CENTER_DISTRIBUTE_RELEASE_NOTES"]
apk: "./fastlane/app-release.apk"
)
UI.message("\n\n\n=====================================\n uploading ios with dSYM files (not zipped) \n=====================================")
@ -59,14 +57,6 @@ lane :test do
UI.message("\n#{Terminal::Table.new(rows: response.body.map!(&:values),
headings: %w[symbol_upload_id app_id origin status symbol_type])}")
# use it for deleting all dSYM uploads
# response.body.map! do |item|
# connection.delete do |req|
# req.url("/v0.1/apps/#{ENV['TEST_MOBILE_CENTER_OWNER_NAME']}/MyApplication-01/symbol_uploads/#{item[0]}")
# req.headers['X-API-Token'] = ENV['TEST_MOBILE_CENTER_API_TOKEN']
# end
# end
UI.message("\n\n\n=====================================\n testing shared values\n=====================================")
UI.message("MOBILE_CENTER_DOWNLOAD_LINK = #{Actions.lane_context[SharedValues::MOBILE_CENTER_DOWNLOAD_LINK]}")
UI.message("MOBILE_CENTER_BUILD_INFORMATION = #{JSON.pretty_generate(Actions.lane_context[SharedValues::MOBILE_CENTER_BUILD_INFORMATION])}")

Просмотреть файл

@ -49,7 +49,7 @@ def stub_add_to_group(status)
.to_return(status: status, body: "{\"short_version\":\"1.0\",\"download_link\":\"https://download.link\"}", headers: { 'Content-Type' => 'application/json' })
end
describe Fastlane::Actions::MobileCenterAction do
describe Fastlane::Actions::MobileCenterUploadAction do
describe '#run' do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)