From e76fc0ffee78ede50650a36c97867cc762bd44fd Mon Sep 17 00:00:00 2001 From: Uzias Ferreira <63263091+uziasferreirazup@users.noreply.github.com> Date: Wed, 19 May 2021 15:55:12 -0300 Subject: [PATCH] fix: remove codecov to release (#1575) * fix: remove codecov * remove codecov Co-authored-by: Uzias Ferreira --- Gemfile.lock | 7 ------- fastlane/Fastfile | 12 ------------ fastlane/Pluginfile | 1 - 3 files changed, 20 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 3a86458545..18149021e6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,3 @@ -GIT - remote: https://github.com/uziasferreirazup/fastlane-plugin-codecov_reporter - revision: 6a17f8f74565505c9bb970002d868a1472f424e6 - specs: - fastlane-plugin-codecov_reporter (0.1.2) - GEM remote: https://rubygems.org/ specs: @@ -342,7 +336,6 @@ DEPENDENCIES danger-junit danger-swiftlint fastlane - fastlane-plugin-codecov_reporter! fastlane-plugin-semantic_release xcode-install diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 2aadad1643..238f1b0f03 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -34,7 +34,6 @@ platform :flutter do desc "Pull Request verification" lane :pull_request_verification do sh "cd #{ENV['PWD']} && fastlane/flutter/tests.sh" - run_codecov(platform: 'flutter') sh "cd #{ENV['PWD']}/flutter && flutter analyze > flutter_analyze_report.txt || true" end @@ -50,7 +49,6 @@ platform :android do gradle(project_dir: "android", task: "clean detekt lintDebug test jacocoTestReport") gradle(project_dir: "android", task: "sample:assembleDebug sample:assembleDebugAndroidTest") gradle(project_dir: "android", task: "automatedTest:assembleDebug automatedTest:assembleDebugAndroidTest") - run_codecov(platform: 'android') end desc "Deploy current code to stage" @@ -79,7 +77,6 @@ platform :ios do scheme: "All", device: "iPhone 11" ) - run_codecov(platform: 'ios') check_if_beagle_works_via_cocoapods_integration check_if_beagle_works_via_spm_integration end @@ -200,7 +197,6 @@ platform :backend do lane :pull_request_verification do gradle(project_dir: "backend", task: "detekt") gradle(project_dir: "backend", tasks:["clean", "assemble", "jacocoTestReport"]) - run_codecov(platform: 'backend') end desc "Sync Spring BFF sample to Micronaut BFF sample" @@ -280,14 +276,6 @@ private_lane :release_notes do |params| \n#{changelog}" end -private_lane :run_codecov do |options| - codecov = ENV["CODECOV_TOKEN"] - if !(codecov.nil? || codecov.empty?) - commit_hash = last_git_commit[:commit_hash] - codecov_reporter(token: codecov, flags: "-F #{options[:platform]} -C #{commit_hash}") - end -end - private_lane :danger_token_available? do danger = ENV["GITHUB_TOKEN"] !(danger.nil? || danger.empty?) diff --git a/fastlane/Pluginfile b/fastlane/Pluginfile index d79550abf8..02917d8368 100644 --- a/fastlane/Pluginfile +++ b/fastlane/Pluginfile @@ -2,5 +2,4 @@ # # Ensure this file is checked in to source control! -gem "fastlane-plugin-codecov_reporter", git: "https://github.com/uziasferreirazup/fastlane-plugin-codecov_reporter" gem 'fastlane-plugin-semantic_release'