Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
fad5e4c
Implement --verbose: write the collected reports
blueyed Aug 24, 2017
fcdaa7b
Update README.md
WPennock Feb 27, 2018
c124f57
Correct typo "Mergeing" -> "Merging"
jimmynotjim Apr 23, 2018
dfe9148
Include license file and changelog in sdists
toddrme2178 May 29, 2018
331d4af
CODECOV_ env need to be in tox passenv
obestwalter Jun 2, 2018
63afb84
update to support Appveyor Ubuntu image, which has lower case 'true's…
dmoody256 Jan 14, 2019
3b3fb16
Merge pull request #151 from obestwalter/patch-1
thomasrockhu Jan 14, 2019
e19da89
handle the case the env variable is not present and make sure we don'…
dmoody256 Jan 14, 2019
a6f4112
Pin pytest to 3.6.0 to work with pytest-cov
thomasrockhu Jan 19, 2019
ad4cc42
Upgrade coverage to 4.4.0
thomasrockhu Jan 19, 2019
157febb
Merge pull request #189 from codecov/upgrade/pytest-3.6.0
thomasrockhu Jan 22, 2019
aeec8a6
Merge pull request #188 from dmoody256/dmoody256-appveyor-ubuntu-image
thomasrockhu Jan 22, 2019
3749d24
Merge pull request #147 from jimmynotjim/patch-2
thomasrockhu Jan 22, 2019
9396434
Update copyright
thomasrockhu Jan 22, 2019
9b24833
Switch to ubuntu
thomasrockhu Jan 22, 2019
b6b5282
Skip failing AppVeyor test due to file path issue on Windows
thomasrockhu Jan 23, 2019
483b9a4
Remove deprecated python versions and add new ones
thomasrockhu Jan 23, 2019
23302b9
Merge pull request #142 from WPennock/patch-1
thomasrockhu Feb 7, 2019
8d48369
sudo no longer needed https://blog.travis-ci.com/2018-11-19-required-…
hugovk Mar 4, 2019
4b111c8
Drop the dot https://twitter.com/pytestdotorg/status/753767547866972160
hugovk Mar 4, 2019
bd48224
Add support for Python 3.7
hugovk Mar 4, 2019
976e9d5
Cache pip files
hugovk Mar 4, 2019
cf4d43c
Add python_requires to help pip
hugovk Mar 4, 2019
7173522
Remove redundant code
hugovk Mar 4, 2019
684ab7f
Fix GitHub typo
hugovk Mar 4, 2019
a4d620b
Use HTTPS
hugovk Mar 4, 2019
6ad9b73
Remove redundant note: sudo no longer required on Travis CI
hugovk Mar 4, 2019
2fb24e2
Merge pull request #190 from codecov/fix/appveyor-tests
thomasrockhu Mar 14, 2019
ea42cea
Add Python 3.7 to Travis
gliptak May 23, 2019
0b96aba
Merge pull request #200 from gliptak/patch-1
thomasrockhu Jun 1, 2019
3113225
Better error message when try_to_run command fails
takluyver Jun 3, 2019
8660351
Run Python 'coverage' tool as a module if possible
takluyver Jun 3, 2019
39331a6
Run Python coverage tool with shell=False
takluyver Jun 3, 2019
71f5066
Merge branch 'master' into add-3.7
thomasrockhu Jun 6, 2019
54033d8
Merge pull request #192 from hugovk/add-3.7
thomasrockhu Jun 7, 2019
de92d4f
Merge pull request #202 from takluyver/patch-2
thomasrockhu Jun 7, 2019
3502fdd
Merge pull request #201 from takluyver/patch-1
thomasrockhu Jun 7, 2019
1d5d288
Merge branch 'master' into verbose
thomasrockhu Jun 9, 2019
ba51a78
Merge pull request #106 from blueyed/verbose
thomasrockhu Jun 9, 2019
80a3fcc
Fix broken bitly link in help
rly Nov 12, 2019
73b1b13
Merge pull request #218 from rly/patch-1
thomasrockhu Nov 12, 2019
2a80aa4
CE-1380_sanitize_args
drazisil Feb 19, 2020
b2951c0
Merge pull request #231 from codecov/ce-1380
drazisil Feb 22, 2020
3a8b06b
Version 2.0.16
drazisil Feb 24, 2020
9f50cca
shell=False
drazisil Mar 11, 2020
6cd4317
Test with no cache
drazisil Mar 11, 2020
6b74ecf
adding some debug commands
drazisil Mar 11, 2020
8dd5720
try to run failing command manually
drazisil Mar 11, 2020
cb64793
Checking tests
drazisil Mar 11, 2020
6fe18b3
convery remaining args to list
drazisil Mar 11, 2020
0fdc00a
move cd command to cwd
drazisil Mar 13, 2020
f2c93c7
Merge pull request #234 from codecov/bug/ce-1479
drazisil Mar 17, 2020
c8622a4
Update makefile so deploy works
drazisil Mar 17, 2020
3a7a9bf
Merge pull request #150 from toddrme2178/patch-1
drazisil Mar 17, 2020
c526ffa
Merge pull request #236 from codecov/fix-makefile
drazisil Mar 17, 2020
2a1e0c8
fixed errors with or symbols
drazisil Mar 17, 2020
0cba834
Merge pull request #238 from codecov/fix-||
drazisil Mar 17, 2020
b0e060e
2.0.18
drazisil Mar 17, 2020
213b8f1
fix subprocess
drazisil Mar 17, 2020
7d782f3
2.0.19
drazisil Mar 17, 2020
95d0c54
enclose
drazisil Mar 17, 2020
38f2303
Exception
drazisil Mar 17, 2020
51e421e
Merge pull request #239 from codecov/fix-subprocess
drazisil Mar 17, 2020
47c8206
generic exception
drazisil Mar 17, 2020
9518ea6
Merge pull request #240 from codecov/2020
drazisil Mar 17, 2020
3ad07c2
bump version
drazisil Mar 17, 2020
93c9903
Bump version
drazisil Mar 17, 2020
046b4fa
Merge pull request #241 from codecov/string-processing
drazisil Mar 17, 2020
bc18afd
Cleaning TOC generation
ThiagoCodecov Mar 17, 2020
800d1ad
Merge pull request #242 from codecov/clean-toc-generation
drazisil Mar 18, 2020
0b17575
Formatting codebase using black
ThiagoCodecov May 18, 2020
b2aacfd
Merge pull request #252 from codecov/thiago/formatting/blacking-codebase
eliatcodecov May 18, 2020
1caf836
Removing extra url header
ThiagoCodecov May 18, 2020
0f08019
Update version
drazisil May 18, 2020
3fe855a
Merge pull request #254 from codecov/thiago/b/remove-extra-url-header
drazisil May 18, 2020
dd16c65
Fixing command for when neither hg or git are available
ThiagoCodecov May 18, 2020
9f5b09e
Bump version
drazisil May 18, 2020
94ae0a2
Merge pull request #255 from codecov/thiago/b/fix-command-no-hg
drazisil May 18, 2020
65d596e
Fixed find command not working on Windows. #167
nmoinvaz Nov 7, 2019
4d87117
Merge pull request #217 from nmoinvaz/fixes/win32-find-param
drazisil May 21, 2020
6a8d722
Added support for gzipping reports.
nmoinvaz Nov 6, 2019
61d3fd0
Merge pull request #215 from nmoinvaz/improvements/gzip-reports
drazisil May 21, 2020
8d6a118
Change version to be dynamically synced (#258)
drazisil May 21, 2020
5324ae4
Add black linting
thomasrockhu May 22, 2020
4caf9ec
Make black a checking call
thomasrockhu May 22, 2020
9a329b9
Call it formatting
thomasrockhu May 22, 2020
5302d5f
Add pypi badge (#259)
drazisil May 22, 2020
3044406
Isolate black to 3.6 and 3.7
thomasrockhu May 22, 2020
8c616eb
do a check on requirements
thomasrockhu May 22, 2020
c85765c
update README
thomasrockhu May 22, 2020
e7c339c
Fix readme
thomasrockhu May 22, 2020
7d705be
Remove -s argment
thomasrockhu May 22, 2020
ad9e538
maybe we dont need which
thomasrockhu May 22, 2020
9d43fb4
Run formatting only on 3.7
thomasrockhu May 22, 2020
08b0988
Remove extra dir
thomasrockhu May 22, 2020
098c82b
Only install on 3.7 because pypy is 3.6 and uses typed-ast
thomasrockhu May 22, 2020
6ba8cbc
Merge pull request #260 from codecov/black-linting
thomasrockhu May 22, 2020
4ec70db
Fix command line quoting for Windows (#169)
ofek May 26, 2020
84048cd
Fixed GitLab CI project directory detection on Windows. (#216)
nmoinvaz May 27, 2020
fd64abc
failing on GitLab ≥ 9 (bis) (#264)
nmoinvaz May 27, 2020
53becf4
Check to see that text is not None before calling replace in write().…
nmoinvaz May 27, 2020
1c0e078
Include the cacert in the PUT call when uploading to S3 (#266)
nmoinvaz May 28, 2020
9830120
Fixed gcov not found due to passing cmd string instead of list to try…
nmoinvaz May 29, 2020
7f98a41
Update readme with 400 error info (#268)
sn1020 Jun 2, 2020
658ddfd
bump version (#269)
thomasrockhu Jun 3, 2020
71a7fa1
Also create an egg (#270)
thomasrockhu Jun 3, 2020
1f5f6b9
Changelog (#271)
thomasrockhu Jun 3, 2020
39100a2
Add CODECOV_NAME as default for name (#267)
nmoinvaz Jun 6, 2020
48a5613
Added GitHub Actions CI detection. (#265)
nmoinvaz Jun 8, 2020
07583f3
More retries (#273)
thomasrockhu Jun 12, 2020
4cbedcd
Bump to version 2.1.5 (#274)
thomasrockhu Jun 12, 2020
df29449
Fix GitHub Actions service (#275)
thomasrockhu Jun 13, 2020
b96c69c
Update to 2.1.7 (#279)
thomasrockhu Jun 14, 2020
812c700
update README (#280)
thomasrockhu Jun 15, 2020
fd86007
Added ability to specify the number of upload attempts via command li…
nmoinvaz Jun 22, 2020
c057a1b
Add support for CODECOV_FLAGS (#285)
blueyed Jul 15, 2020
066706e
Bump to 2.1.8 (#287)
thomasrockhu Jul 16, 2020
1e58169
Merge remote-tracking branch 'upstream/master' into feature/upstream-…
nmaludy Jul 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7]

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Test
run: |
make reinstall
make test
- name: Upload coverage reports to Codecov
run: |
codecov
env: # Or as an environment variable
super_secret: ${{ secrets.CODECOV_TOKEN }}
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
language: python
# cache: pip
notifications:
email: false
dist: xenial
sudo: false
python:
- 2.7
- pypy
- 3.4
- 3.5
- 3.6
- 3.6
- 3.7
- pypy3
matrix:
include:
- python: 2.7
dist: trusty
sudo: required
virtualenv:
system_site_packages: true
addons:
Expand All @@ -22,11 +24,16 @@ matrix:
- python-requests
- python-coverage
- python-mock
- python: 3.7
dist: xenial
script: make format

install:
- pip install -r tests/requirements.txt
- python setup.py install
script:
- py.test tests/test.py --cov=codecov
- make reinstall
- make test
# - pytest tests/test.py --cov=codecov
after_success:
- codecov
105 changes: 104 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,106 @@
### `2.1.8`

- [#285](https://github.com/codecov/codecov-python/pull/285)Add support for CODECOV_FLAGS
- [#276](https://github.com/codecov/codecov-python/pull/276)Add ability to specify number of upload retries

### `2.1.7`

- [#279](https://github.com/codecov/codecov-python/pull/279) Fix pinned coverage version

### `2.1.6`

- [#275](https://github.com/codecov/codecov-python/pull/275) Fix GitHub Actions implementation

### `2.1.5`

- [#273](https://github.com/codecov/codecov-python/pull/273) Implement retries on Codecov API calls
- [#265](https://github.com/codecov/codecov-python/pull/265) Add GitHub Actions CI detection
- [#267](https://github.com/codecov/codecov-python/pull/267) Add CODECOV_NAME as default for name

### `2.1.4`

- [#260](https://github.com/codecov/codecov-python/pull/260) Enforce black formatting
- [#169](https://github.com/codecov/codecov-python/pull/169) Fix command line quoting on Windows
- [#216](https://github.com/codecov/codecov-python/pull/216) Fix GitLab CI project directory detection on Windows
- [#264](https://github.com/codecov/codecov-python/pull/264) Fix GitLab CI post version 9
- [#262](https://github.com/codecov/codecov-python/pull/262) Check text for NoneType on writes
- [#266](https://github.com/codecov/codecov-python/pull/266) Include the cacert in the PUT call when uploading to S3
- [#263](https://github.com/codecov/codecov-python/pull/263) Fixed gcov not being found in certain instances

### `2.1.3`

- Fix find command not working on Windows
- Add support for gzipping reports
- Dynamic syncing of version

### `2.1.1`

- Fix command when neither hg or git are not available

### `2.1.0`

- Remove x-amz-acl header
- Reformat with Black

### `2.0.22`

- Cleaning TOC generation

### `2.0.21`

- fixed string issues

### `2.0.20`

- fixed broken subprocess handling

### `2.0.19`

- fixed broken subprocess handling

### `2.0.18`

- fixed broken subprocess handling

### `2.0.17`

- fixed reported command injection vulnerability.

### `2.0.16`

- fixed reported command injection vulnerability.

### `2.0.15`

- add `-X s3` to disable direct to S3 uploading

### `2.0.14`

- fixed coverage combine

### `2.0.13`

- fix encoding issues

### `2.0.12`

- revert merge commit fix, back to old way

### `2.0.11`

- fix merge commit when it's a pull request
- remove snapci, business closed
- skip vendor directories for gcov parsing
- run coverage combine not merge
- fix report encoding

### `2.0.10`

- fix uploading when reports contain characters outside of latin-1
- remove reduced_redundancy header from

### `2.0.7`

- Add `--name/-n` to cli
- Add support for Jenkins Blue
- Fix environment variable joining
Expand All @@ -33,12 +112,15 @@
- Support yaml:token and yaml:slug

### `2.0.5`

- Use `%20` for encoding spaces [appveyor] https://github.com/codecov/codecov-python/pull/66

### `2.0.4`

- fix detecting merge commits on all CI, not just Travis

### `2.0.3`

- add `-F` to flagging uploads [new feature]
- fixed some reports ascii chars
- added `--pr` flag for manually specifing pulls
Expand All @@ -52,97 +134,118 @@
- hide token from stdout

### `1.6.4`

- fix gitlab project directory
- fallback on git branch/commit
- fix using gcov_exec

### `1.6.0`

- depreciate `--no-fail` now a default
- add `--required` to fail the build if Codecov fails
- added `--cacerts` for enterprise customers
- added fix reports http://bit.ly/1O4eBpt

### `1.5.0`

- fix retreiving mercurial commit
- add support for swift/xcode7 profdata
- now uploading direct-to-s3 to improve product performance
- not require branch, will default to `master` (the default branch)
- fix drone.io commit number, which is not a full 40 sha.

### `1.4.1`

- added `--no-fail` to prevent failing builds when missing configuration or Codecov errors

### `1.4.0`

- Ignore other known bad files/paths
- Added test suite to test against example repositories
- Using `coverage xml -i` to ignore No source for code errors
- Cleaned up command output with help and colors
- Added `gcov` processing, see `codecov --help` for more info.

### `1.3.1`

- Ignore other known bad files/paths
- Fix issue with decoding files in py3+

### `1.3.0`

- Refactor project to be a global uploader for more reports

### `1.2.3`

- Remove `test-results.xml`, not a coverage file
- Add CircleCI container numbers

### `1.2.2`

- bring back client-side pre-processing for jacoco (they can crush)

### `1.2.1`

- accept any file ending in `coverge.xml`

### `1.2.0`

- accept `nosetests.xml` and `test-results.xml` files
- no longer do client side pre-processing, upload raw
- capture SEMAPHORE_CURRENT_THREAD

### `1.1.13`

- added --build arg for advanced usage

### `1.1.10`

- fix package for 2.6 on windows
- fix showing `--help` when called in non-git backed repo
- fix AppVeyor public repos

### `1.1.8`

- support GitLab CI Runner
- added rollbar to help bugs if presented
- added more filepath matching
- pep8 cleanup
- added Shippable ci

### `1.1.7`

- support for D lang added, special thanks to @ColdenCullen
- Wercker CI supported by @Robpol86
- fixed Drone build number

### `1.1.6`

- fix semaphore commit revision number
- preprocess reports from xml

### `1.1.5`

- search for all `lcov|gcov` files
- depreciate `--min-coverage`, use Github Status Update feature
- depreciate `--min-coverage`, use GitHub Status Update feature
- pre-process xml => json

### `1.1.4`

- added support for pyhton 2.6 by @Robpol86
- added AppVeyor support by @Robpol86

### `1.1.3`

- added more ignore paths

### `1.1.2`

- search for `lcov.info` files
- pause for `.1` before checking for min-coverage
- accept `--env` variables which are stored in front-end for build specs

### `1.1.1`

- build python coverage xml only when no reports found to fix overriding reports
- now defaulting output to **plain text**. Use `--json` to return json results
- added `jacocoTestReport.xml` to search list
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include CHANGELOG.md
include LICENSE
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
deploy:
git tag -a v$(shell python -c "import codecov;print codecov.version;") -m ""
git push origin v$(shell python -c "import codecov;print codecov.version;")
python setup.py sdist bdist_wheel upload
git tag -a v$(python -c 'import codecov;print(codecov.version)') -m ""
git push origin v$(python -c 'import codecov;print(codecov.version)')
python setup.py sdist bdist_wheel bdist_egg
python -m twine upload dist/*

reinstall:
pip uninstall -y codecov
python setup.py install

test:
py.test tests/test.py
py.test tests/test.py --cov=codecov

format:
black . --check

compare:
hub compare $(shell git tag --sort=refname | tail -1)...master
Expand Down
Loading