forked from CamDavidsonPilon/lifelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (61 loc) · 1.94 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This allows it to run on faster containers.
sudo: false
language: python
matrix:
include:
- python: 2.7
env: MATPLOTLIB_VERSION=1.5.3 DISPLAY=:99.0
- python: 3.5
env: MATPLOTLIB_VERSION=1.5.3 DISPLAY=:99.0
# allow_failures:
# - python: "nightly"
addons:
apt:
packages:
- gcc
- gfortran
# Deps for matplotlib, can remove once 1.5.0 is released and installable via conda
- inkscape
- libav-tools
- gdb
- mencoder
- dvipng
- texlive-latex-base
- texlive-latex-extra
- texlive-fonts-recommended
- texlive-latex-recommended
- graphviz
# To be able to run plotting tests
before_install:
- sh -e /etc/init.d/xvfb start
# See http://conda.pydata.org/docs/travis.html
install:
# You may want to periodically update this, although the conda update
# conda line below will keep everything up-to-date.
# This saves us some downloading for this version
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update conda
# Useful for debugging any issues with conda
- conda info -a
# Should match requirements.txt
- conda create -n test-environment python=$TRAVIS_PYTHON_VERSION pip numpy scipy pandas pytest
- source activate test-environment
- pip install git+https://github.com/matplotlib/matplotlib.git@v$MATPLOTLIB_VERSION;
# Build in place so we can run tests
- pip install python-coveralls pytest-cov
- pip install .
# command to run tests
script: py.test -s --cov=lifelines -vv --block=False --cov-report term-missing
after_success:
coveralls
# Don't want notifications
notifications:
email: false