-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from WeTransfer/feature/bitrise-update
Migrate to Bitrise & Danger-Swift
- Loading branch information
Showing
20 changed files
with
174 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[submodule "Submodules/WeTransfer-iOS-CI"] | ||
path = Submodules/WeTransfer-iOS-CI | ||
url=https://github.com/WeTransfer/WeTransfer-iOS-CI.git | ||
url = https://github.com/WeTransfer/WeTransfer-iOS-CI.git | ||
branch = master | ||
[submodule "Submodules/ios-snapshot-test-case"] | ||
path = Submodules/ios-snapshot-test-case | ||
url = https://github.com/uber/ios-snapshot-test-case/ | ||
branch = master | ||
url = https://github.com/uber/ios-snapshot-test-case.git |
This file was deleted.
Oops, something went wrong.
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# https://help.github.com/en/articles/about-code-owners | ||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence, they | ||
# will be requested for review when someone opens a PR. | ||
* @Boris-Em @AvdLee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
## Changelog | ||
|
||
### Next | ||
|
||
### 1.3.0 | ||
- Updated SwiftLint code style rules | ||
- Forcing a changelog entry now from CI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import Danger | ||
import WeTransferPRLinter | ||
|
||
WeTransferPRLinter.lint() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
# frozen_string_literal: true | ||
source "https://rubygems.org" | ||
|
||
# Needed for Fastlane & Danger | ||
gem 'danger' | ||
gem 'danger-junit' | ||
gem 'danger-swiftlint' | ||
gem 'danger-xcov' | ||
gem 'danger-xcode_summary' | ||
gem 'fastlane' | ||
gem 'xcpretty' | ||
gem 'xcpretty-json-formatter' | ||
|
||
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') | ||
eval_gemfile(plugins_path) if File.exist?(plugins_path) | ||
ci_gems_path = File.join(File.dirname(__FILE__), "Submodules/WeTransfer-iOS-CI/Gemfile") | ||
eval_gemfile(ci_gems_path) if File.exist?(ci_gems_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
addressable (2.7.0) | ||
public_suffix (>= 2.0.2, < 5.0) | ||
ast (2.4.0) | ||
claide (1.0.3) | ||
claide-plugins (0.9.2) | ||
cork | ||
nap | ||
open4 (~> 1.3) | ||
coderay (1.1.2) | ||
colored2 (3.1.2) | ||
cork (0.3.0) | ||
colored2 (~> 3.1) | ||
danger (6.2.0) | ||
claide (~> 1.0) | ||
claide-plugins (>= 0.9.2) | ||
colored2 (~> 3.1) | ||
cork (~> 0.1) | ||
faraday (~> 0.9) | ||
faraday-http-cache (~> 2.0) | ||
git (~> 1.5) | ||
kramdown (~> 2.0) | ||
kramdown-parser-gfm (~> 1.0) | ||
no_proxy_fix | ||
octokit (~> 4.7) | ||
terminal-table (~> 1) | ||
danger-junit (1.0.0) | ||
danger (> 2.0) | ||
ox (~> 2.0) | ||
danger-rubocop (0.7.1) | ||
danger | ||
rubocop | ||
diff-lcs (1.3) | ||
docile (1.1.5) | ||
faraday (0.17.3) | ||
multipart-post (>= 1.2, < 3) | ||
faraday-http-cache (2.0.0) | ||
faraday (~> 0.8) | ||
git (1.5.0) | ||
json (2.3.0) | ||
kramdown (2.1.0) | ||
kramdown-parser-gfm (1.1.0) | ||
kramdown (~> 2.0) | ||
method_source (0.9.2) | ||
multipart-post (2.1.1) | ||
nap (1.1.0) | ||
no_proxy_fix (0.1.2) | ||
octokit (4.15.0) | ||
faraday (>= 0.9) | ||
sawyer (~> 0.8.0, >= 0.5.3) | ||
open4 (1.3.4) | ||
ox (2.12.1) | ||
parallel (1.19.1) | ||
parser (2.7.0.2) | ||
ast (~> 2.4.0) | ||
powerpack (0.1.2) | ||
pry (0.12.2) | ||
coderay (~> 1.1.0) | ||
method_source (~> 0.9.0) | ||
public_suffix (4.0.3) | ||
rainbow (2.2.2) | ||
rake | ||
rake (13.0.1) | ||
rspec (3.9.0) | ||
rspec-core (~> 3.9.0) | ||
rspec-expectations (~> 3.9.0) | ||
rspec-mocks (~> 3.9.0) | ||
rspec-core (3.9.1) | ||
rspec-support (~> 3.9.1) | ||
rspec-expectations (3.9.0) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.9.0) | ||
rspec-mocks (3.9.1) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.9.0) | ||
rspec-support (3.9.2) | ||
rspec_junit_formatter (0.4.1) | ||
rspec-core (>= 2, < 4, != 2.12.0) | ||
rubocop (0.49.1) | ||
parallel (~> 1.10) | ||
parser (>= 2.3.3.1, < 3.0) | ||
powerpack (~> 0.1) | ||
rainbow (>= 1.99.1, < 3.0) | ||
ruby-progressbar (~> 1.7) | ||
unicode-display_width (~> 1.0, >= 1.0.1) | ||
ruby-progressbar (1.10.1) | ||
sawyer (0.8.2) | ||
addressable (>= 2.3.5) | ||
faraday (> 0.8, < 2.0) | ||
simplecov (0.12.0) | ||
docile (~> 1.1.0) | ||
json (>= 1.8, < 3) | ||
simplecov-html (~> 0.10.0) | ||
simplecov-html (0.10.2) | ||
terminal-table (1.8.0) | ||
unicode-display_width (~> 1.1, >= 1.1.1) | ||
unicode-display_width (1.6.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
danger | ||
danger-junit | ||
danger-rubocop | ||
pry | ||
rspec | ||
rspec_junit_formatter (~> 0.2) | ||
rubocop (~> 0.49.0) | ||
simplecov (~> 0.12.0) | ||
|
||
BUNDLED WITH | ||
2.1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// swift-tools-version:5.1 | ||
// We're hiding dev, test, and danger dependencies with // dev to make sure they're not fetched by users of this package. | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Coyote", | ||
products: [ | ||
// dev .library(name: "DangerDeps", type: .dynamic, targets: ["DangerDependencies"]) // dev | ||
], | ||
dependencies: [ | ||
// dev .package(url: "https://github.com/danger/swift", from: "3.0.0"), | ||
// dev .package(path: "Submodules/WeTransfer-iOS-CI/Danger-Swift") | ||
], | ||
targets: [ | ||
// This is just an arbitrary Swift file in the app, that has | ||
// no dependencies outside of Foundation, the dependencies section | ||
// ensures that the library for Danger gets build also. | ||
// dev .target(name: "DangerDependencies", dependencies: ["Danger", "WeTransferPRLinter"], path: "Submodules/WeTransfer-iOS-CI/Danger-Swift", sources: ["DangerFakeSource.swift"]) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule WeTransfer-iOS-CI
updated
40 files
Submodule ios-snapshot-test-case
updated
58 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+4.41 KB
...ts.CIRectangleDetectorTests/testCorrectlyDetectsAndReturnsQuadilateral_13_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,12 @@ | ||
# More documentation about how to customize your build | ||
# can be found here: | ||
# https://docs.fastlane.tools | ||
fastlane_version '1.109.0' | ||
# Fastlane requirements | ||
fastlane_version "1.109.0" | ||
|
||
# This value helps us track success metrics for Fastfiles | ||
# we automatically generate. Feel free to remove this line | ||
# once you get things running smoothly! | ||
generated_fastfile_id '0121e253-f9e2-40ac-b489-f17f36e24ec6' | ||
import "./../Submodules/WeTransfer-iOS-CI/Fastlane/Fastfile" | ||
|
||
import './../Submodules/WeTransfer-iOS-CI/Fastlane/Fastfile' | ||
|
||
desc 'Clean the derived data, run tests validate the changes' | ||
desc "Run the tests and prepare for Danger" | ||
lane :test do |options| | ||
clear_derived_data | ||
|
||
# Set timeout to prevent xcodebuild -list -project to take to much retries. | ||
ENV['FASTLANE_XCODE_LIST_TIMEOUT'] = '120' | ||
|
||
begin | ||
scan( | ||
scheme: options[:project_name], | ||
project: "#{options[:project_name]}.xcodeproj", | ||
device: 'iPhone 7', | ||
clean: true, | ||
fail_build: false, | ||
code_coverage: true, | ||
formatter: 'xcpretty-json-formatter' | ||
) | ||
rescue => ex | ||
UI.error("Tests failed: #{ex}") | ||
end | ||
|
||
trainer(output_directory: 'build/reports/', fail_build: false) | ||
|
||
validate_changes(project_name: options[:project_name]) | ||
test_project( | ||
project_name: "WeScan", | ||
scheme: "WeScan", | ||
device: "iPhone 8") | ||
end |
This file was deleted.
Oops, something went wrong.