summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-24 19:21:39 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-24 19:21:39 -0400
commitf739ebcd9822d484532955cce5c859f5e3f64a2a (patch)
treeaabfeb442c44d909897c80c7930b32f4512eb7ee
parente118164c2b1366bb8ad61cf3a817155b0ac59df6 (diff)
downloadcmd2-git-f739ebcd9822d484532955cce5c859f5e3f64a2a.tar.gz
Don't try to run a code coverage analysis on PyPy
Running a code coverage analysis takes forever on pypy and twice forever for pypy3, so don't try. Also try to get codecov working with AppVeyor
-rw-r--r--.coveragerc6
-rw-r--r--.travis.yml13
-rw-r--r--tox.ini4
3 files changed, 12 insertions, 11 deletions
diff --git a/.coveragerc b/.coveragerc
index e354ad42..ea915f7c 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -13,10 +13,10 @@ exclude_lines =
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
- # Don't complain about OS-specific code for other OSes (excludes Windows and Mac, includes Linux)
- if sys\.platform
+ # Don't complain about macOS-specific code until we have a CI platform that builds on macOS
+ if sys\.platform == 'darwin':
-# (integer): the number of digits after the decimal point to display for reported coverage percentages.
+# (integer): the number of digits after the decimal point to display for reported coverage percentages.
precision = 1
diff --git a/.travis.yml b/.travis.yml
index 523ab911..f246f8cf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,12 +20,13 @@ matrix:
- os: linux
python: 3.7-dev
env: TOXENV=py37
- - os: linux
- python: pypy
- env: TOXENV=pypy
- - os: linux
- python: pypy3
- env: TOXENV=pypy3
+# # Warning: Don't try to use code coverage analysis with pypy as it is insanely slow
+# - os: linux
+# python: pypy
+# env: TOXENV=pypy
+# - os: linux
+# python: pypy3
+# env: TOXENV=pypy3
# # Stock OSX Python
# - os: osx
# language: generic
diff --git a/tox.ini b/tox.ini
index a8d366f3..869a53ce 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,7 +2,7 @@
envlist = py27,py34,py35,py36,jython,pypy
[testenv]
-passenv = CI TRAVIS TRAVIS_*
+passenv = CI TRAVIS TRAVIS_* APPVEYOR*
deps =
codecov
mock
@@ -11,7 +11,7 @@ deps =
pytest-cov
six
commands=
- py.test -v --cov=./ --basetemp={envtmpdir} {posargs}
+ py.test -v --cov=cmd2 --basetemp={envtmpdir} {posargs}
{envpython} examples/example.py --test examples/exampleSession.txt
codecov