Skip to content

Commit

Permalink
circleci add coderalls coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 committed Nov 19, 2023
1 parent e12d162 commit 42bf24e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
15 changes: 14 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,20 @@ jobs:
SHELL_ENV=.shell-env
source "${SHELL_ENV}"
"${PIPENV}" run pip list -v
"${PIPENV}" run pytest -v ./coverlovin2/test
"${PIPENV}" run pytest -v --cov=coverlovin2 --cov-report=lcov ./coverlovin2/test
- run:
name: coveralls coverage upload
# copied from https://github.com/coverallsapp/coverage-reporter/blob/master/doc/examples/circleci.yml
# `coveralls report` requires setting environment variable `COVERALLS_REPO_TOKEN`
# get a token from
# https://app.circleci.com/settings/project/github/jtmoon79/coverlovin2/environment-variables
command: |
set -eux
curl -sLO "https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux.tar.gz"
curl -sLO "https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt"
cat coveralls-checksums.txt | grep coveralls-linux.tar.gz | sha256sum --check
tar -xzf coveralls-linux.tar.gz
./coveralls report coverage.lcov
build_pypi:
docker:
- image: cimg/python:3.8
Expand Down
3 changes: 0 additions & 3 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@ exclude_lines =
omit =
coverlovin2/test/*
coverlovin2/__init__.py

[xml]
output = coverage.xml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ CoverLovin2.egg-info/
htmlcov/
.coverage
coverage.xml
coverage.lcov

# just for me
Notes.md

0 comments on commit 42bf24e

Please sign in to comment.