Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #390 from codecov/coverage
Browse files Browse the repository at this point in the history
Try bash coverage
  • Loading branch information
thomasrockhu authored Dec 18, 2020
2 parents 3d3df35 + f9a1362 commit 11c8610
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,28 @@ version: 2.1
jobs:
build:
docker:
- image: particleflux/circleci-bats-kcov:1.0.0
- image: circleci/ruby:2.7
steps:
- checkout
- run:
name: Extract shunit
command: tar --strip-components=1 -zxvf tests/shunit2-2.1.8.tar.gz
- run:
name: Install bashcov and json
command: |
gem install json
gem install simplecov
gem install simplecov-cobertura
gem install bashcov
- run:
name: Run Tests
command: env -i PATH="$PATH" tests/test
# kcov --include-path=./codecov coverage/ tests/test
command: |
env -i PATH="$PATH"
bashcov tests/test
- run:
name: Upload Codecov
command: |
bash <(curl -s https://codecov.io/bash) -s coverage -d > upload.txt
bash <(curl -s https://codecov.io/bash) -s coverage
- store_artifacts:
path: codecov.txt
bash <(curl -s https://codecov.io/bash) -s /home/circleci/project/coverage -Z
- store_artifacts:
path: coverage
deploy:
Expand Down
4 changes: 4 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require 'simplecov'
require 'simplecov-cobertura'

SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore:
- "tests/"
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
Codecov Global Uploader
=======================
[![codecov](https://codecov.io/gh/codecov/codecov-bash/branch/master/graph/badge.svg?token=iEvSTnW9Qm)](https://codecov.io/gh/codecov/codecov-bash)

> Upload reports to Codecov for almost every supported language.
[Deployed Version](https://codecov.io/bash)


SHA1Sum: [hash file](https://raw.githubusercontent.com/codecov/codecov-bash/master/SHA1SUM)

------
Expand Down

0 comments on commit 11c8610

Please sign in to comment.