Update patches to adjust more autopkgtest dependencies in Gemfile
This commit is contained in:
parent
2620c5d9ee
commit
5182dad647
6 changed files with 63 additions and 12 deletions
10
debian/patches/0499-30-remove-guard-rspec.patch
vendored
Normal file
10
debian/patches/0499-30-remove-guard-rspec.patch
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/Gemfile
|
||||
+++ b/Gemfile
|
||||
@@ -369,7 +369,6 @@
|
||||
gem 'concurrent-ruby', '~> 1.1'
|
||||
gem 'test-prof', '~> 0.12.0'
|
||||
gem 'rspec_junit_formatter'
|
||||
- gem 'guard-rspec'
|
||||
|
||||
# Moved in `test` because https://gitlab.com/gitlab-org/gitlab/-/issues/217527
|
||||
gem 'derailed_benchmarks', require: false
|
|
@ -1,11 +0,0 @@
|
|||
--- a/Gemfile
|
||||
+++ b/Gemfile
|
||||
@@ -350,8 +350,6 @@
|
||||
|
||||
gem 'timecop', '~> 0.9.1'
|
||||
|
||||
- gem 'png_quantizator', '~> 0.2.1', require: false
|
||||
-
|
||||
gem 'parallel', '~> 1.19', require: false
|
||||
|
||||
gem 'rblineprof', '~> 0.3.6', platform: :mri, require: false
|
10
debian/patches/0760-remove-simplecov-cobertura.patch
vendored
Normal file
10
debian/patches/0760-remove-simplecov-cobertura.patch
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/spec/simplecov_env.rb
|
||||
+++ b/spec/simplecov_env.rb
|
||||
@@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'simplecov'
|
||||
-require 'simplecov-cobertura'
|
||||
require 'active_support/core_ext/numeric/time'
|
||||
require_relative '../lib/gitlab/utils'
|
||||
|
29
debian/patches/0770-remove-capybara-screenshot-rspec.patch
vendored
Normal file
29
debian/patches/0770-remove-capybara-screenshot-rspec.patch
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
--- a/spec/support/capybara.rb
|
||||
+++ b/spec/support/capybara.rb
|
||||
@@ -3,7 +3,6 @@
|
||||
# rubocop:disable Style/GlobalVars
|
||||
require 'capybara/rails'
|
||||
require 'capybara/rspec'
|
||||
-require 'capybara-screenshot/rspec'
|
||||
require 'selenium-webdriver'
|
||||
|
||||
# Give CI some extra time
|
||||
@@ -82,18 +81,6 @@
|
||||
Capybara.default_normalize_ws = true
|
||||
Capybara.enable_aria_label = true
|
||||
|
||||
-Capybara::Screenshot.append_timestamp = false
|
||||
-
|
||||
-Capybara::Screenshot.register_filename_prefix_formatter(:rspec) do |example|
|
||||
- example.full_description.downcase.parameterize(separator: "_")[0..99]
|
||||
-end
|
||||
-# Keep only the screenshots generated from the last failing test suite
|
||||
-Capybara::Screenshot.prune_strategy = :keep_last_run
|
||||
-# From https://github.com/mattheworiordan/capybara-screenshot/issues/84#issuecomment-41219326
|
||||
-Capybara::Screenshot.register_driver(:chrome) do |driver, path|
|
||||
- driver.browser.save_screenshot(path)
|
||||
-end
|
||||
-
|
||||
RSpec.configure do |config|
|
||||
config.include CapybaraHelpers, type: :feature
|
||||
|
10
debian/patches/0770-remove-rubocop-rspec.patch
vendored
Normal file
10
debian/patches/0770-remove-rubocop-rspec.patch
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/spec/support/rspec.rb
|
||||
+++ b/spec/support/rspec.rb
|
||||
@@ -5,7 +5,6 @@
|
||||
require_relative "helpers/stub_object_storage"
|
||||
require_relative "helpers/stub_env"
|
||||
require_relative "helpers/fast_rails_root"
|
||||
-require 'rubocop/rspec/support'
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.mock_with :rspec
|
5
debian/patches/series
vendored
5
debian/patches/series
vendored
|
@ -13,9 +13,9 @@
|
|||
0485-relax-gitlab-sidekiq-fetcher.patch
|
||||
0486-relax-sidekiq.patch
|
||||
0488-relax-bullet.patch
|
||||
0499-disable-png-quantizator.patch
|
||||
0499-10-relax-capybara.patch
|
||||
0499-20-remove-capybara-screenshot.patch
|
||||
0499-30-remove-guard-rspec.patch
|
||||
0500-set-webpack-root.patch
|
||||
0510-remove-dev-dependencies.patch
|
||||
0520-add-system-lib-path-for-webpack.patch
|
||||
|
@ -28,3 +28,6 @@
|
|||
0710-use-yarnpkg.patch
|
||||
0740-use-packaged-modules.patch
|
||||
0750-fix-relative-paths.patch
|
||||
0760-remove-simplecov-cobertura.patch
|
||||
0770-remove-rubocop-rspec.patch
|
||||
0770-remove-capybara-screenshot-rspec.patch
|
||||
|
|
Loading…
Reference in a new issue