Skip to content

Commit

Permalink
Update CodeClimate test reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Jan 27, 2019
1 parent 2d5fbf1 commit 0f2f0b9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
9 changes: 5 additions & 4 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true
SimpleCov.start do
add_filter '/spec/'
add_group 'Lib', 'lib/'
formatter SimpleCov::Formatter::HTMLFormatter unless ENV['TRAVIS']
unless defined?(RUBY_ENGINE) && %w(rbx jruby).include?(RUBY_ENGINE)
SimpleCov.start do
add_filter '/spec/'
formatter SimpleCov::Formatter::HTMLFormatter unless ENV['TRAVIS']
end
end
18 changes: 12 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
dist: trusty
sudo: required
dist: xenial
sudo: false
language: ruby
rvm:
# The latest ruby that is pre-installed on Travis Trusty
- 2.3.1
- 2.3.8
env:
global:
- TRAVIS=1 CI=1 COVERAGE=1
cache: bundler
bundler_args: --without debug

# Avoid rake here, as the RSpec test task spawns a new process which does not run via bundler.
script: "bundle exec rspec --format d && bundle exec rubocop && bundle exec codeclimate-test-reporter"
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
script:
- bundle exec rspec --format d
- bundle exec rubocop
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
7 changes: 0 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,3 @@ source 'https://rubygems.org'
gemspec

gem 'thredded', '>= 0.8.0', '< 1.0', git: 'https://github.com/thredded/thredded'

if ENV['CI']
group :test do
# CodeClimate coverage reporting.
gem 'codeclimate-test-reporter', require: false
end
end

0 comments on commit 0f2f0b9

Please sign in to comment.