Newer
Older
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"
# 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
install:
- >
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
numpy scipy nose pandas matplotlib mkl-service 'tensorflow>=1.1.0,<2.0.0'
- pip install -r docs/requirements.txt
# download data and models, then run tests
# We download using wget to avoid sporadic SSL error on travis from Python.
$(mhcflurry-downloads url models_class1_presentation)
$(mhcflurry-downloads url models_class1_pan_variants)
$(mhcflurry-downloads url allele_sequences)
-P /tmp/downloads
data_curated
data_mass_spec_annotated
models_class1
models_class1_presentation
models_class1_pan
models_class1_pan_variants
allele_sequences
--already-downloaded-dir /tmp/downloads
- mhcflurry-downloads info # just to test this command works
- nosetests --with-timer -sv test