-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
68 lines (68 loc) · 2.83 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
sudo: false
language: python
cache:
pip: true
directories:
- "$HOME/.cached_models"
python:
- '2.7'
- '3.4'
env:
matrix:
- TEST=test/test_exp_survival_model.py
- TEST=test/test_exp_survival_model_sim.py
- TEST=test/test_pem_survival_model.py
- TEST=test/test_pem_survival_model_sim.py
- TEST=test/test_weibull_survival_model.py
- TEST=test/test_weibull_survival_model_sim.py
- TEST=test/test_pem_survival_model_varcoefs.py
- TEST=test/test_pem_survival_model_varcoefs_sim.py
- TEST=test/test_pem_survival_model_timevarying.py
- TEST=test/test_pem_survival_model_timevarying_sim.py
- TEST=test/test_byo-gamma_survival_model.py
- TEST=test/test_byo-gamma_survival_model_sim.py
- TEST=test/test_jointmodel_datasets.py
- TEST=test/test_formulas.py
- TEST=test/test_SurvivalStanData.py
before_install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
-O miniconda.sh; else wget https://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 -q conda
- conda info -a
- echo -e "#\x21/bin/bash\n\$@ > wait4.out 2>&1 3>&1 &\nPROCESS=\"\$!\"\nfunction
finish {\ncat wait4.out\n}\ntrap finish EXIT\nwhile :\ndo\n RESULT=\`ps -p \${PROCESS}
-o comm=\`" > wait4.sh
- echo -e " if [ -z \"\${RESULT}\" ]; then\n wait \${PROCESS}; exit \$?\n else\n echo
\"-\"; sleep 10\n fi\ndone\nexit \$?" >> wait4.sh
- more wait4.sh
- chmod 755 wait4.sh
addons:
apt:
packages:
- pandoc
install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy nose
pandas matplotlib
- source activate test-environment
- pip install -r requirements.txt
- pip install -r test_requirements.txt
- pip install .
- pip install coveralls
script:
- "./lint.sh"
- "./wait4.sh nosetests $TEST --with-coverage --cover-package=survivalstan"
after_success: coveralls
deploy:
provider: pypi
user: jackinovik
password:
secure: xEW9XUTpD/xmW4RWcDEfPdFNAsIBvsM+jExDeWTZUO6W06AB+F/4dmErX7HasZVQzW74xmOQRgstcgxhmfhVS9xjlolueC22juh/mDIcKpcEYvupkUP7EWJcBA1fDZ3ua+ZwXLOfUHRloVFusyu6DOkjTzJlsvrWgbR98na2h0PXAdUU1FGOF4aKRZX78jujk6CzTmXae0Qln0FbFh5MRExmLcUo7u5iQgOah3m7RETEbcrJxraABIfTdiETlscZSrrmUNECbdvECD08Ax/jNlVwxxinh4P0PHPAcg/QsYCU0WS8d6dL3glnTFN6m1cZIIDJQhMDosdcF39qW/ult0fzg/eRjQABTaEyX9RdUrgDY5/PK929Pg6k6d4L2fUblVXGogZy7BjqQDPNi8XHsChgBBx7YsPrET9jJ2uF34GuzBR4+SrF6jQzyyMXemqlew0eYEizslXmH9L+pWCaqBo3bHHV7z5AzshWcaB7M9PJAqewTwH3Yu6ZfBt0G4Dw0OxbXkixLE4P2Y0+1lZO3ad+IVrLDod57no7zKLmZCZ8Jf1CsSQTERQlKd8GbRR+DnzFJUqhtTNFP7sioAqMtNJKg7un42H5KW012Sm74ltzP/F6Ry+furt8gzpJh5VUxR8NrUU3+zZO2YLXrBHZbPcGxNyeuC7CayI+5+sHpcI=
on:
branch: master
tags: true
skip_existing: true