diff --git a/.travis.yml b/.travis.yml index c7203ec821..7969db0721 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,14 +14,15 @@ before_install: install: - . ./scripts/create_testenv.sh + - pip install coveralls env: - - TESTCMD=" -vv --with-timer -e test_examples -e test_distributions" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION} - - TESTCMD=" -vv --with-timer pymc3.tests.test_distributions" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION} - - TESTCMD=" -vv --with-timer pymc3.tests.test_distributions_random" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION} + - TESTCMD=" -vv --with-timer --with-coverage --cover-package=pymc3 -e test_examples -e test_distributions" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION} + - TESTCMD=" -vv --with-timer --with-coverage --cover-package=pymc3 pymc3.tests.test_distributions" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION} + - TESTCMD=" -vv --with-timer --with-coverage --cover-package=pymc3 pymc3.tests.test_distributions_random" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION} script: - . ./scripts/test.sh $TESTCMD after_success: - - bash <(curl -s https://codecov.io/bash) + - coveralls diff --git a/scripts/create_testenv.sh b/scripts/create_testenv.sh index 10d630bdef..868550245c 100755 --- a/scripts/create_testenv.sh +++ b/scripts/create_testenv.sh @@ -8,7 +8,7 @@ conda create -n testenv --yes pip python=${PYTHON_VERSION} source activate testenv -conda install --yes pyqt=4.11.4 jupyter pyzmq numpy scipy nose matplotlib pandas Cython patsy statsmodels joblib +conda install --yes pyqt=4.11.4 jupyter pyzmq numpy scipy nose matplotlib pandas Cython patsy statsmodels joblib coverage if [ ${PYTHON_VERSION} == "2.7" ]; then conda install --yes mock enum34; fi