Skip to content

Commit

Permalink
Merge 5d11a20 into fe0517c
Browse files Browse the repository at this point in the history
  • Loading branch information
miah committed Jul 23, 2019
2 parents fe0517c + 5d11a20 commit f628fef
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .expeditor/buildkite/coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -ueo pipefail

echo "--- system details"
uname -a
ruby -v
bundle --version

echo "--- bundle install"
bundle install --jobs=7 --retry=3 --without tools integration

echo "+++ bundle exec rake"
bundle exec rake

4 changes: 4 additions & 0 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ pipelines:
- verify:
description: Pull Request validation tests
public: true

- coverage:
description: Generate test coverage report
public: true
11 changes: 11 additions & 0 deletions .expeditor/coverage.pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
steps:

- label: coverage
commands:
- bundle install --jobs=7 --retry=3 --without tools integration
- bundle exec rake test:default
expeditor:
executor:
docker:
image: ruby:2.6-stretch
13 changes: 11 additions & 2 deletions test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# encoding: utf-8
require "coveralls"
Coveralls.wear!
if ENV["CI_ENABLE_COVERAGE"]
require "coveralls"
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter,
])

SimpleCov.start do
add_filter "/test/"
end
end

require "minitest/autorun"
require "minitest/spec"
Expand Down

0 comments on commit f628fef

Please sign in to comment.