Last active
December 4, 2015 14:34
-
-
Save samueljackson92/15a82f4bce60131702ab to your computer and use it in GitHub Desktop.
.travis config for python that doesn't suck.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: python | |
notifications: | |
email: false | |
python: | |
- "2.7" | |
cache: apt | |
addons: | |
apt: | |
packages: | |
- libatlas-dev | |
- libatlas-base-dev | |
- liblapack-dev | |
- gfortran | |
install: | |
# 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" | |
- 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 | |
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION pip numpy scipy nose click scikit-learn matplotlib | |
- source activate test-environment | |
- python setup.py install | |
# Run test | |
script: | |
- nosetests --logging-level=INFO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment