Skip to content

Commit

Permalink
Add simplecov for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hasghari committed Apr 14, 2018
1 parent 6961f93 commit 6774d47
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@ rvm:
- 2.3.4
- 2.4.1
env:
- STRATEGY=array
- STRATEGY=ltree
global:
- CC_TEST_REPORTER_ID=4a8875ec1a4bd9cc55d9fe48779be866f90ac331155d039fa3d13b2a61b4fa9f
matrix:
- STRATEGY=array
- STRATEGY=ltree
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
gemfile:
- gemfiles/activerecord_5.1.5.gemfile
- gemfiles/activerecord_5.2.0.gemfile
before_install: gem install bundler -v 1.10.6
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ source 'https://rubygems.org'
gemspec

gem 'appraisal'
gem 'simplecov', require: false
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'simplecov'
SimpleCov.start

require 'combustion'
Combustion.initialize! :active_record

Expand Down

0 comments on commit 6774d47

Please sign in to comment.