File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ group :development, :test do
114
114
gem 'rubocop-rails' , require : false
115
115
gem 'rubocop-performance' , require : false
116
116
gem 'capybara'
117
- gem 'coveralls_reborn'
117
+ gem 'coveralls_reborn' , require : false
118
118
gem "erb_lint" , require : false
119
119
gem "erblint-github"
120
120
gem 'pry-byebug'
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
- require 'coveralls'
2
+ def in_ci?
3
+ !ENV [ 'CI' ] . nil? && ENV [ 'CI' ] == 'true'
4
+ end
5
+
6
+ require 'coveralls' if in_ci?
3
7
require 'factory_bot'
4
8
require 'webmock/rspec'
5
9
6
10
# allow connections to localhost and bibdata marc record service
7
11
WebMock . disable_net_connect! ( allow_localhost : true ,
8
12
allow : 'chromedriver.storage.googleapis.com' )
9
13
10
- Coveralls . wear! ( 'rails' ) do
11
- add_filter '/lib/orangelight/browse_lists.rb'
12
- add_filter '/app/models/orangelight.rb'
13
- add_filter '/lib/tasks'
14
- add_filter 'app/controllers/search_history_controller.rb'
14
+ if in_ci?
15
+ Coveralls . wear! ( 'rails' ) do
16
+ add_filter '/lib/orangelight/browse_lists.rb'
17
+ add_filter '/app/models/orangelight.rb'
18
+ add_filter '/lib/tasks'
19
+ add_filter 'app/controllers/search_history_controller.rb'
20
+ end
15
21
end
16
22
17
23
FactoryBot . find_definitions
21
27
config . example_status_persistence_file_path = "tmp/rspec_examples.txt"
22
28
end
23
29
24
- def in_ci?
25
- !ENV [ 'CI' ] . nil? && ENV [ 'CI' ] == 'true'
26
- end
27
-
28
30
ENV [ 'GRAPHQL_API_URL' ] = 'https://figgy.princeton.edu/graphql' unless ENV [ 'GRAPHQL_API_URL' ]
29
31
ENV [ 'FIGGY_URL' ] = 'https://figgy.princeton.edu' unless ENV [ 'FIGGY_URL' ]
You can’t perform that action at this time.
0 commit comments