Newer
Older
sudo: false # Use container-based infrastructure
language: python
python:
- "2.7"
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.
# See https://www.tensorflow.org/install/install_linux#use_pip_in_anaconda
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
export TF_PACKAGE=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.10.1-cp27-none-linux_x86_64.whl;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
export TF_PACKAGE=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.10.1-cp35-cp35m-linux_x86_64.whl;
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
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
- pip install tensorflow pypandoc pylint 'theano>=1.0.4'
- pip install pypandoc pylint
- pip install --ignore-installed --upgrade $TF_PACKAGE
- PYTHONHASHSEED=0
- MKL_THREADING_LAYER=GNU # for theano
- KERAS_BACKEND=theano
- KERAS_BACKEND=tensorflow
# download data and models, then run tests
- mhcflurry-downloads fetch data_curated models_class1 models_class1_pan allele_sequences
- mhcflurry-downloads info # just to test this command works
- nosetests test -sv
- ./lint.sh