-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add uncovered lines report to test
- Loading branch information
Showing
3 changed files
with
32 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM ruby:latest | ||
|
||
# https://github.com/infertux/bashcov/issues/43#issuecomment-1423015292 | ||
|
||
RUN gem install bashcov simplecov-lcov | ||
RUN useradd -m bashcov | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y libpng-dev pkg-config build-essential bison git curl | ||
|
||
COPY . /rgbenv | ||
WORKDIR /rgbenv | ||
RUN chown -R bashcov:bashcov /rgbenv | ||
|
||
USER bashcov | ||
|
||
RUN make bats | ||
RUN echo "require 'simplecov-lcov'" > .simplecov && \ | ||
echo "SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter" >> .simplecov | ||
|
||
CMD ["bash", ".github/ci/bashcov.sh"] | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
bashcov -- /rgbenv/bats/bin/bats tests | ||
|
||
cat coverage/lcov/rgbenv.lcov | grep ",0" |
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