From cece85243ec0456debade6874d3be2f3f42d16a7 Mon Sep 17 00:00:00 2001 From: justindujardin Date: Fri, 21 Aug 2020 18:24:42 -0700 Subject: [PATCH 1/2] chore: add codecov script --- .travis.yml | 2 +- tools/codecov.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tools/codecov.sh diff --git a/.travis.yml b/.travis.yml index 488a1b9..a3b49b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ matrix: script: - sh tools/test.sh after_success: - - echo "todo: python coverage reporting to coveralls" + - sh tools/codecov.sh - if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then sh tools/deploy.sh; fi cache: directories: diff --git a/tools/codecov.sh b/tools/codecov.sh new file mode 100644 index 0000000..475134a --- /dev/null +++ b/tools/codecov.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -e +. .env/bin/activate +pip install codecov +python -m codecov From 70d96b707f362a70d4ab52e1791bf9ba9bca9879 Mon Sep 17 00:00:00 2001 From: justindujardin Date: Fri, 21 Aug 2020 18:30:28 -0700 Subject: [PATCH 2/2] chore: add coverage badge to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9292dad..be53e49 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Pathy: a python Path interface for bucket storage [![Build status](https://travis-ci.com/justindujardin/pathy.svg?branch=master)](https://travis-ci.com/justindujardin/pathy) +[![codecov](https://codecov.io/gh/justindujardin/pathy/branch/master/graph/badge.svg)](https://codecov.io/gh/justindujardin/pathy) [![Pypi version](https://badgen.net/pypi/v/pathy)](https://pypi.org/project/pathy/) Pathy is a python package (_with type annotations_) for working with Bucket storage providers. It provides a CLI app for basic file operations between local files and remote buckets. It enables a smooth developer experience by supporting local file-system backed buckets during development and testing. It makes converting bucket blobs into local files a snap with optional local file caching of blobs.