mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-19 07:31:59 +02:00
* Ditch Foundation.exit()'s where feasible * Sentry integration * SwiftFormat * Upload symbols and sources to Sentry * Use Sentry Releases * Do not use ExitCode exceptions * Clarify why we need CustomNSError extension
18 lines
341 B
Swift
18 lines
341 B
Swift
struct CI {
|
|
private static let rawVersion = "${CIRRUS_TAG}"
|
|
|
|
static var version: String {
|
|
rawVersion.expanded() ? rawVersion : "SNAPSHOT"
|
|
}
|
|
|
|
static var release: String? {
|
|
rawVersion.expanded() ? "tart@\(rawVersion)" : nil
|
|
}
|
|
}
|
|
|
|
private extension String {
|
|
func expanded() -> Bool {
|
|
!isEmpty && !starts(with: "$")
|
|
}
|
|
}
|