-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters