Jelajahi Sumber

Retry test once when failing

onevcat 7 tahun lalu
induk
melakukan
8b1c97fcbe
2 mengubah file dengan 20 tambahan dan 5 penghapusan
  1. 16 5
      Gemfile.lock
  2. 4 0
      fastlane/Fastfile

+ 16 - 5
Gemfile.lock

@@ -49,9 +49,10 @@ GEM
     colored2 (3.1.2)
     commander-fastlane (4.4.6)
       highline (~> 1.7.2)
-    concurrent-ruby (1.1.3)
+    concurrent-ruby (1.1.4)
     declarative (0.0.10)
     declarative-option (0.1.0)
+    digest-crc (0.4.1)
     domain_name (0.5.20180417)
       unf (>= 0.0.5, < 1.0.0)
     dotenv (2.5.0)
@@ -66,7 +67,7 @@ GEM
     faraday_middleware (0.12.2)
       faraday (>= 0.7.4, < 1.0)
     fastimage (2.1.5)
-    fastlane (2.109.1)
+    fastlane (2.111.0)
       CFPropertyList (>= 2.3, < 4.0.0)
       addressable (>= 2.3, < 3.0.0)
       babosa (>= 1.0.2, < 2.0.0)
@@ -82,6 +83,7 @@ GEM
       fastimage (>= 2.1.0, < 3.0.0)
       gh_inspector (>= 1.1.2, < 2.0.0)
       google-api-client (>= 0.21.2, < 0.24.0)
+      google-cloud-storage (>= 1.15.0, < 2.0.0)
       highline (>= 1.7.2, < 2.0.0)
       json (< 3.0.0)
       mini_magick (~> 4.5.1)
@@ -114,6 +116,15 @@ GEM
       representable (~> 3.0)
       retriable (>= 2.0, < 4.0)
       signet (~> 0.9)
+    google-cloud-core (1.2.7)
+      google-cloud-env (~> 1.0)
+    google-cloud-env (1.0.5)
+      faraday (~> 0.11)
+    google-cloud-storage (1.15.0)
+      digest-crc (~> 0.4)
+      google-api-client (~> 0.23)
+      google-cloud-core (~> 1.2)
+      googleauth (~> 0.6.2)
     googleauth (0.6.7)
       faraday (~> 0.12)
       jwt (>= 1.4, < 3.0)
@@ -159,8 +170,8 @@ GEM
     plist (3.4.0)
     public_suffix (2.0.5)
     rb-fsevent (0.10.3)
-    rb-inotify (0.9.10)
-      ffi (>= 0.5.0, < 2)
+    rb-inotify (0.10.0)
+      ffi (~> 1.0)
     redcarpet (3.4.0)
     representable (3.0.4)
       declarative (< 0.1.0)
@@ -224,4 +235,4 @@ DEPENDENCIES
   jazzy
 
 BUNDLED WITH
-   1.17.1
+   1.17.2

+ 4 - 0
fastlane/Fastfile

@@ -16,6 +16,10 @@ platform :ios do
   end
 
   lane :test do |options|
+    _test(options) rescue _test(options)
+  end
+
+  private_lane :_test do |options|
     if options[:scheme].include? "macOS"
         scan(scheme: options[:scheme], clean: true, xcargs: "SWIFT_VERSION=#{options[:swift_version]}", destination: "platform=macOS")
     else