Skip to content

Commit

Permalink
Merge pull request #83 from hammerlab/dev
Browse files Browse the repository at this point in the history
switch pypi to jackinovik account
  • Loading branch information
jburos authored Jan 11, 2019
2 parents 70eb62d + df83d81 commit f3de71c
Showing 1 changed file with 38 additions and 49 deletions.
87 changes: 38 additions & 49 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
sudo: false # Use container-based infrastructure
sudo: false
language: python
cache:
pip: true
directories:
- $HOME/.cached_models
- "$HOME/.cached_models"
python:
- "2.7"
- "3.4"
- "3.6"
- '2.7'
- '3.4'
env:
- TEST=lint
matrix:
- TEST=test/test_exp_survival_model.py
- TEST=test/test_exp_survival_model_sim.py
- TEST=test/test_pem_survival_model.py
Expand All @@ -26,53 +25,43 @@ env:
- TEST=test/test_formulas.py
- TEST=test/test_SurvivalStanData.py
before_install:
# Commands below copied from: http://conda.pydata.org/docs/travis.html
# We do this conditionally because it saves us some downloading if the
# version is the same.
- 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"
# reset the shell's lookup table for program name to path mappings
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# borrow following from http://github.com/stan-dev/rstan
- 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
- 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:
# install pandoc for use with pypandoc for converting the README
# from markdown to RST
- 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
- 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:
- if [[ "$TEST" == "lint" ]]; then
./lint.sh;
else
./wait4.sh nosetests $TEST --with-coverage --cover-package=survivalstan;
fi
after_success:
coveralls
- "./lint.sh"
- "./wait4.sh nosetests $TEST --with-coverage --cover-package=survivalstan"
after_success: coveralls
deploy:
provider: pypi
user: hammerlab
password: # See http://docs.travis-ci.com/user/encryption-keys/
secure: "weztV3HeMuiBShFxRrFS8IMWh/Yu+wjN8IrCT4IyB3I1GU5n3HIqKji0+M1/VWTEGhwVqPZw9yY0zQle9MYZRp4/QLQh8qLOEs3GvM4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/umexdbsIpEI1FVKDNVHy+bOos1NjFoVBM3+oSxEbppc6sc1g3a5O3GGQPW8ceHlA3soJfaFWnTUOgubncl8DNzzicLMAL1wENkb9YnkI8A+mxVnH0vY1ZoDkXMBBDZl/NqN6IfgPt37ZvXKV7nun+TtlzTQ82byQbBsrO5kBTEnyAzSsqAmAnRK5hsh2j6wtxkb99gxoT+8pYZXuwMkEajrHFG3T+Q+HzzrbXn4Ps=
on:
branch: master
tags: true

0 comments on commit f3de71c

Please sign in to comment.