From f86795308351d103a64e7e3901f56b997e64d1cd Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Fri, 19 Feb 2016 16:27:57 -0500 Subject: 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. --- appveyor.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'appveyor.yml') 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" -- cgit v1.2.3