diff options
author | Paul Ganssle <paul@ganssle.io> | 2016-02-19 16:27:57 -0500 |
---|---|---|
committer | Paul Ganssle <paul@ganssle.io> | 2016-02-20 08:32:15 -0500 |
commit | f86795308351d103a64e7e3901f56b997e64d1cd (patch) | |
tree | c82c21d9cd04cd577341a4c872a8a293bf9e099b | |
parent | 1ef2235b4583bd93b136cdee28755d5c2ec02a78 (diff) | |
download | dateutil-f86795308351d103a64e7e3901f56b997e64d1cd.tar.gz |
Added code coverage on appveyor and Travis.
Cleaned up appveyor script so the scripts it needs are in its PATH.
Added codecov badge to README.me.
-rw-r--r-- | .travis.yml | 8 | ||||
-rw-r--r-- | README.rst | 5 | ||||
-rw-r--r-- | appveyor.yml | 18 |
3 files changed, 24 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index 78c77db..67695c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,16 @@ python: - "3.5" - "pypy" - "pypy3" +before_install: + - if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then pip install coverage==3.7.1; fi + - pip install codecov install: - pip install six - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi - ./ci_tools/retry.sh python updatezinfo.py script: - - python setup.py test + - coverage run --omit=setup.py,dateutil/test/* setup.py test +after_success: + - codecov + sudo: false @@ -9,6 +9,10 @@ dateutil - powerful extensions to datetime :target: https://ci.appveyor.com/project/dateutil/dateutil :alt: appveyor build status +.. image:: https://codecov.io/github/dateutil/dateutil/coverage.svg?branch=master + :target: https://codecov.io/github/dateutil/dateutil?branch=master + :alt: Code coverage + .. image:: https://img.shields.io/pypi/dd/python-dateutil.svg?style=flat-square :target: https://pypi.python.org/pypi/python-dateutil/ :alt: pypi downloads per day @@ -18,7 +22,6 @@ dateutil - powerful extensions to datetime :alt: pypi version - The `dateutil` module provides powerful extensions to the standard `datetime` module, available in Python. diff --git a/appveyor.yml b/appveyor.yml index 3a0ffab..6573ec7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,13 +10,21 @@ environment: - PYTHON: "C:/Python35" - PYTHON: "C:/Python35-x64" install: - - ps: Start-FileDownload 'https://bootstrap.pypa.io/get-pip.py' - - "%PYTHON%/python.exe get-pip.py" - - "%PYTHON%/Scripts/pip.exe install six" - # use postgres' zic + # Add PostgreSQL (zic), Python and scripts directory to current path - set path=c:\Program Files\PostgreSQL\9.3\bin\;%PATH% + - set path=%PATH%;%PYTHON%;%PYTHON%/Scripts + + # Download scripts and dependencies + - ps: Start-FileDownload 'https://bootstrap.pypa.io/get-pip.py' + - "python get-pip.py" + - "pip install six" + - "pip install coverage" + - "pip install codecov" + # This frequently fails with network errors, so we'll retry it up to 5 times # with a 1 minute rate limit. - "ci_tools/retry.bat %PYTHON%/python.exe updatezinfo.py" test_script: - - "%PYTHON%/python.exe setup.py test" + - "coverage run --omit=setup.py,dateutil/test/* setup.py test" +after_test: + - "codecov" |