Skip to content

Commit 0f4de3e

Browse files
author
Ivan Evgrafov
authored
Merge pull request #13 from abinoam/update_codeclimate
Improve travis configuration
2 parents 4594255 + 0ebf599 commit 0f4de3e

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ rvm:
1111
- ruby-2.2.4
1212
- ruby-2.2.2
1313
- ruby-2.3.0-preview2
14-
- jruby-head
1514
matrix:
1615
exclude:
1716
- os: linux
@@ -24,8 +23,9 @@ matrix:
2423
rvm: ruby-2.0.0-p648
2524
- os: osx
2625
rvm: ruby-2.3.0-preview2
27-
env:
28-
- JRUBY_OPTS="-Xcli.debug=true --debug"
26+
include:
27+
- rvm: jruby-head
28+
env: JRUBY_OPTS="-Xcli.debug=true --debug"
2929
addons:
3030
code_climate:
3131
repo_token: 60d9731d654527cb53aabc7db15bcde87d701ddb6b1cba8fc0da6aba16d00bb1
@@ -44,3 +44,5 @@ install:
4444
- bundle exec rake install
4545
script:
4646
- bundle exec rake spec
47+
after_success:
48+
- bundle exec codeclimate-test-reporter

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require 'rubocop/rake_task'
66

77
RSpec::Core::RakeTask.new(:spec) do |spec|
88
spec.pattern = FileList['spec/**/*_spec.rb'].uniq
9-
spec.rspec_opts = '--format documentation'
9+
spec.rspec_opts = '--format documentation --color'
1010
end
1111

1212
YARD::Rake::YardocTask.new(:doc) do |t|

lib/gnuplotrb/mixins/plottable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def method_missing(meth_id, *args)
6565
# @return [true] for existing methods and
6666
# #to_|term_name| when name is a valid terminal type.
6767
# @return [false] otherwise
68-
def respond_to?(meth_id)
68+
def respond_to?(meth_id, include_all=false)
6969
# Next line is here to force iRuby use #to_iruby
7070
# instead of #to_svg.
7171
return super if defined? IRuby

spec/spec_helper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
require 'digest'
44
require 'chunky_png'
55
require 'digest/md5'
6-
SimpleCov.add_filter 'vendor'
7-
SimpleCov.add_filter 'examples'
8-
SimpleCov.formatter = CodeClimate::TestReporter::Formatter
9-
SimpleCov.start CodeClimate::TestReporter.configuration.profile
6+
7+
SimpleCov.start do
8+
add_filter 'examples'
9+
end
1010

1111
require 'gnuplotrb'
1212

0 commit comments

Comments
 (0)