diff --git a/.goreleaser.yml b/.goreleaser.yml index 76fd751..18f4232 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -71,6 +71,8 @@ brews: install: | libexec.install Dir["*"] bin.write_exec_script "#{libexec}/tart.app/Contents/MacOS/tart" - generate_completions_from_executable(libexec/"tart.app/Contents/MacOS/tart", "--generate-completion-script") custom_block: | depends_on :macos => :ventura + def post_install + generate_completions_from_executable(libexec/"tart.app/Contents/MacOS/tart", "--generate-completion-script") + end diff --git a/Tests/TartTests/LayerizerTests.swift b/Tests/TartTests/LayerizerTests.swift index 7ee3f54..ca22abd 100644 --- a/Tests/TartTests/LayerizerTests.swift +++ b/Tests/TartTests/LayerizerTests.swift @@ -14,7 +14,7 @@ final class LayerizerTests: XCTestCase { do { registryRunner = try await RegistryRunner() } catch { - try XCTSkipIf(ProcessInfo.processInfo.environment["CI"] == nil) + try XCTSkip("Registry is unavailable: \(error)") } } @@ -26,7 +26,7 @@ final class LayerizerTests: XCTestCase { func testDiskV2() async throws { // Original disk file to be pushed to the registry - let originalDiskFileURL = try fileWithRandomData(sizeBytes: 5 * 1024 * 1024 * 1024) + let originalDiskFileURL = try fileWithRandomData(sizeBytes: 1 * 1024 * 1024 * 1024) addTeardownBlock { try FileManager.default.removeItem(at: originalDiskFileURL) } diff --git a/Tests/TartTests/RegistryTests.swift b/Tests/TartTests/RegistryTests.swift index dad02ed..b66bb6b 100644 --- a/Tests/TartTests/RegistryTests.swift +++ b/Tests/TartTests/RegistryTests.swift @@ -10,7 +10,7 @@ final class RegistryTests: XCTestCase { do { registryRunner = try await RegistryRunner() } catch { - try XCTSkipIf(ProcessInfo.processInfo.environment["CI"] == nil) + try XCTSkip("Registry is unavailable: \(error)") } }