File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 13
13
fail-fast : false
14
14
matrix :
15
15
ruby-version :
16
- # - '2.5', # 2.5 is broken in ruby/setup-ruby. It ships with a very old bundler but Pysch 5.x and crash.
16
+ - ' 2.5' ,
17
17
- ' 2.6' ,
18
18
- ' 2.7' ,
19
19
- ' 3.0' ,
30
30
with :
31
31
ruby-version : ${{ matrix.ruby-version }}
32
32
bundler-cache : true
33
+ cache-version : 2
33
34
- name : Run tests
34
35
run : bundle exec rake --trace
35
36
env :
Original file line number Diff line number Diff line change 7
7
8
8
group :development do
9
9
gem 'rake' , :require => false
10
- gem 'rdoc'
10
+ gem 'rdoc' unless ENV [ 'CI' ] # Avoid dependency on psych for Ruby 2.5 compatibility
11
11
gem 'test-unit'
12
12
gem 'pry'
13
13
gem 'rack' , '~> 2.2'
Original file line number Diff line number Diff line change 1
1
require 'bundler/setup'
2
2
require 'rake/testtask'
3
- require 'rdoc/task'
4
3
require 'bundler/gem_tasks'
5
4
6
5
task :default => :test
@@ -13,13 +12,17 @@ Rake::TestTask.new('test') do |test|
13
12
test . test_files = Dir . glob ( 'test/test_*.rb' )
14
13
end
15
14
16
- Rake ::RDocTask . new ( "doc" ) do |rdoc |
17
- load 'lib/httpclient/version.rb'
18
- rdoc . rdoc_dir = 'doc'
19
- rdoc . title = "HTTPClient Library Document: Version #{ HTTPClient ::VERSION } "
20
- rdoc . rdoc_files . include ( 'README.txt' )
21
- rdoc . rdoc_files . include ( 'lib/httpclient/*.rb' )
22
- rdoc . rdoc_files . include ( 'lib/httpclient.rb' )
15
+ unless ENV [ 'CI' ]
16
+ require 'rdoc/task'
17
+
18
+ Rake ::RDocTask . new ( "doc" ) do |rdoc |
19
+ load 'lib/httpclient/version.rb'
20
+ rdoc . rdoc_dir = 'doc'
21
+ rdoc . title = "HTTPClient Library Document: Version #{ HTTPClient ::VERSION } "
22
+ rdoc . rdoc_files . include ( 'README.txt' )
23
+ rdoc . rdoc_files . include ( 'lib/httpclient/*.rb' )
24
+ rdoc . rdoc_files . include ( 'lib/httpclient.rb' )
25
+ end
23
26
end
24
27
25
28
task 'tags' do
You can’t perform that action at this time.
0 commit comments