Skip to content

Commit

Permalink
Fix Ruby formatting in test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Aug 1, 2024
1 parent 3d7c853 commit cd01ef0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions fastlane/lanes/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

annotation_ctx = "firebase-test-#{app}-vanilla-debug"
begin
gradle(task: "runFlank#{app.to_s.capitalize}")
sh("buildkite-agent annotation remove --context '#{annotation_ctx}' || true") if is_ci?
rescue
details_url = sh('jq ".[].webLink" ~/WordPress-Android/build/instrumented-tests/matrix_ids.json -r')
message = "Firebase Tests failed. Failure details can be seen [here in Firebase Console](#{details_url})"
sh('buildkite-agent', 'annotate', message, '--style', 'error', '--context', annotation_ctx) if is_ci?
UI.test_failure!(message)
gradle(task: "runFlank#{app.to_s.capitalize}")
sh("buildkite-agent annotation remove --context '#{annotation_ctx}' || true") if is_ci?
rescue
details_url = sh('jq ".[].webLink" ~/WordPress-Android/build/instrumented-tests/matrix_ids.json -r')
message = "Firebase Tests failed. Failure details can be seen [here in Firebase Console](#{details_url})"
sh('buildkite-agent', 'annotate', message, '--style', 'error', '--context', annotation_ctx) if is_ci?
UI.test_failure!(message)
end
end
end

0 comments on commit cd01ef0

Please sign in to comment.