Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (26 sloc) 904 Bytes
language: python
python:
- 2.7
- 3.5
- 3.6
install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://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 config --add channels conda-forge
- conda update -q conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- conda install sympy cython cyipopt nose coverage sphinx matplotlib openmp
script:
- nosetests -v --with-coverage --cover-package=opty
- python setup.py install
# Make sure the docs build.
- cd docs && make html && cd ..