-
Notifications
You must be signed in to change notification settings - Fork 20
/
Package.swift
56 lines (52 loc) · 1.96 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "DangerSwiftCoverage",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "DangerSwiftCoverage",
targets: ["DangerSwiftCoverage"]
),
.library(name: "DangerDeps", type: .dynamic, targets: ["DangerDependencies"]), // dev
],
dependencies: [
.package(url: "https://github.com/danger/swift.git", from: "3.0.0"),
// Dev dependencies
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.35.8"), // dev
.package(url: "https://github.com/Realm/SwiftLint", from: "0.28.1"), // dev
.package(url: "https://github.com/f-meloni/Rocket", from: "1.0.0"), // dev
.package(url: "https://github.com/orta/Komondor", from: "1.0.0"), // dev
.package(url: "https://github.com/f-meloni/danger-swift-xcodesummary", from: "1.0.0"), // dev
],
targets: [
.target(name: "DangerDependencies", dependencies: ["Danger", "DangerSwiftCoverage", "DangerXCodeSummary"]), // dev
.target(
name: "DangerSwiftCoverage",
dependencies: ["Danger"]
),
.testTarget(
name: "DangerSwiftCoverageTests",
dependencies: ["DangerSwiftCoverage", "DangerFixtures"]
),
]
)
#if canImport(PackageConfig)
import PackageConfig
let config = PackageConfiguration([
"komondor": [
"pre-commit": [
"swift test --generate-linuxmain",
"swift run swiftformat .",
"swift run swiftlint autocorrect --path Sources/",
"git add .",
],
],
"rocket": [
"after": [
"push",
],
],
]).write()
#endif