Skip to content

Commit 484288c

Browse files
authored
Switch over to Danger-Swift & Bitrise (#34)
* Remove unneeded files and prepare for new CI setup * Update CI reference * Prepare changelog
1 parent fa052c0 commit 484288c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+28
-8317
lines changed

.jazzy.yaml

-14
This file was deleted.

.travis.yml

-14
This file was deleted.

CODEOWNERS

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# https://help.github.com/en/articles/about-code-owners
2+
# These owners will be the default owners for everything in
3+
# the repo. Unless a later match takes precedence, they
4+
# will be requested for review when someone opens a PR.
5+
* @Boris-Em @kairadiagne @AvdLee

Changelog.md

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
## Changelog
22

3-
### Next
4-
- `MockingURLProtocol` Error now conforms to `CustomDebugStringConvertible` for better debugging logs.
5-
- Fixed a bug in which two Mocks would not be registered for the same URL if the HTTP method was different.
6-
73
### 2.0.0
84
- A new completion callback can be set on `Mock` to use for expectation fulfilling once a `Mock` is completed.
95
- A new onRequest callback can be set on `Mock` to use for expectation fulfilling once a `Mock` is requested.

Dangerfile.swift

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import Danger
2+
import WeTransferPRLinter
3+
4+
WeTransferPRLinter.lint()

Gemfile

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
# frozen_string_literal: true
2-
source "https://rubygems.org"
32

4-
# Needed for Fastlane & Danger
5-
gem 'danger'
6-
gem 'danger-junit'
7-
gem 'danger-swiftlint'
8-
gem 'danger-xcode_summary'
9-
gem 'danger-xcov'
10-
gem 'fastlane'
11-
gem 'xcpretty'
12-
gem 'xcpretty-json-formatter'
13-
14-
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
15-
eval_gemfile(plugins_path) if File.exist?(plugins_path)
3+
ci_gems_path = File.join(File.dirname(__FILE__), "Submodules/WeTransfer-iOS-CI/Gemfile")
4+
eval_gemfile(ci_gems_path) if File.exist?(ci_gems_path)

Package.swift

+12-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@ let package = Package(name: "Mocker",
99
.iOS(.v10),
1010
.tvOS(.v12),
1111
.watchOS(.v6)],
12-
products: [.library(name: "Mocker",
13-
targets: ["Mocker"])],
14-
targets: [.target(name: "Mocker",
15-
path: "Sources")],
12+
products: [
13+
.library(name: "DangerDeps", type: .dynamic, targets: ["DangerDependencies"]), // dev
14+
.library(name: "Mocker", targets: ["Mocker"])
15+
],
16+
dependencies: [
17+
.package(url: "https://github.com/danger/swift", from: "3.0.0"), // dev
18+
.package(path: "Submodules/WeTransfer-iOS-CI/Danger-Swift") // dev
19+
],
20+
targets: [
21+
.target(name: "Mocker", path: "Sources"),
22+
.target(name: "DangerDependencies", dependencies: ["Danger", "WeTransferPRLinter"], path: "Submodules/WeTransfer-iOS-CI/Danger-Swift", sources: ["DangerFakeSource.swift"]) // dev
23+
],
1624
swiftLanguageVersions: [.v5])

docs/Classes.html

-137
This file was deleted.

0 commit comments

Comments
 (0)