Skip to content

Commit

Permalink
Merge pull request #229 from CamDavidsonPilon/test-improvements
Browse files Browse the repository at this point in the history
Some test improvements
  • Loading branch information
CamDavidsonPilon committed Mar 20, 2016
2 parents 5ced989 + eb80549 commit e1b3777
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ matrix:
- python: 3.5
env: MATPLOTLIB_VERSION=1.4.3 DISPLAY=:99.0
- python: 2.7
env: MATPLOTLIB_VERSION=1.5.0rc2 DISPLAY=:99.0
env: MATPLOTLIB_VERSION=1.5.0 DISPLAY=:99.0
- python: 3.5
env: MATPLOTLIB_VERSION=1.5.0rc2 DISPLAY=:99.0
env: MATPLOTLIB_VERSION=1.5.0 DISPLAY=:99.0
- python: 2.7
env: MATPLOTLIB_VERSION=1.5.1 DISPLAY=:99.0
- python: 3.5
env: MATPLOTLIB_VERSION=1.5.1 DISPLAY=:99.0
# allow_failures:
# - python: "nightly"

Expand Down Expand Up @@ -71,10 +75,10 @@ install:
fi

# Build in place so we can run tests
- pip install coveralls pytest-cov
- pip install python-coveralls pytest-cov
- pip install .
# command to run tests
script: py.test --cov=lifelines -vv --block=False
script: py.test --cov=lifelines -vv --block=False --cov-report term-missing
after_success:
coveralls
# Don't want notifications
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Latest Version](https://pypip.in/v/lifelines/badge.png)](https://pypi.python.org/pypi/lifelines/)
[![Build Status](https://travis-ci.org/CamDavidsonPilon/lifelines.svg?branch=master)](https://travis-ci.org/CamDavidsonPilon/lifelines)
[![Coverage Status](https://coveralls.io/repos/github/CamDavidsonPilon/lifelines/badge.svg?branch=master)](https://coveralls.io/github/CamDavidsonPilon/lifelines?branch=master)

[What is survival analysis and why should I learn it?](http://lifelines.readthedocs.org/en/latest/Survival%20Analysis%20intro.html)
Survival analysis was originally developed and applied heavily by the actuarial and medical community. Its purpose was to answer *why do events occur now versus later* under uncertainty (where *events* might refer to deaths, disease remission, etc.). This is great for researchers who are interested in measuring lifetimes: they can answer questions like *what factors might influence deaths?*
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-r requirements.txt
pytest
coveralls
python-coveralls
pytest-cov
matplotlib
Empty file added tests/__init__.py
Empty file.

0 comments on commit e1b3777

Please sign in to comment.