-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to Bitrise & Danger-Swift (#52)
* Migrate to use Bitrise and Danger-Swift * Make class final * Update CI * Reference master of WeTransfer-iOS-CI
- Loading branch information
Showing
13 changed files
with
148 additions
and
66 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,3 +1,4 @@ | ||
[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 |
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 @kairadiagne @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
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
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
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-xcode_summary' | ||
gem 'danger-xcov' | ||
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
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
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,11 @@ | ||
# Fastlane requirements | ||
fastlane_version "1.109.0" | ||
generated_fastfile_id "0121e253-f9e2-40ac-b489-f17f36e24ec6" | ||
|
||
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| | ||
# Set timeout to prevent xcodebuild -list -project to take to much retries. | ||
ENV["FASTLANE_XCODE_LIST_TIMEOUT"] = "120" | ||
|
||
begin | ||
ENV["XCPRETTY_JSON_FILE_OUTPUT"] = "build/reports/#{options[:scheme]}_Tests.json" | ||
scan( | ||
scheme: options[:project_name], | ||
project: "#{options[:project_name]}.xcodeproj", | ||
device: "iPhone 11", | ||
code_coverage: true, | ||
disable_concurrent_testing: true, | ||
fail_build: false, | ||
skip_slack: true, | ||
clean: true, | ||
formatter: "xcpretty-json-formatter", | ||
xcargs: "-UseNewBuildSystem=YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO", | ||
result_bundle: true, | ||
output_directory: "build/reports/" | ||
) | ||
rescue => ex | ||
UI.important("Tests failed for #{ex}") | ||
end | ||
|
||
begin | ||
trainer(path: "build/reports/", output_directory: "build/reports/", extension: ".xml", fail_build: false) | ||
rescue => ex | ||
UI.important("Trainer report generation failed #{ex}") | ||
end | ||
|
||
validate_changes(project_name: options[:project_name]) | ||
test_project( | ||
project_name: "Diagnostics", | ||
scheme: "Diagnostics") | ||
end |
This file was deleted.
Oops, something went wrong.