Skip to content

Commit

Permalink
update travis py27 tests (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt authored Oct 20, 2017
1 parent 922f44f commit 4388714
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 69 deletions.
42 changes: 0 additions & 42 deletions .travis_install.sh

This file was deleted.

16 changes: 0 additions & 16 deletions .travis_test.sh

This file was deleted.

21 changes: 10 additions & 11 deletions ci/.travis_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
set -e

if [ "${TRAVIS_PYTHON_VERSION}" == "2.7" ]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
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;
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
fi

bash miniconda.sh -b -p $HOME/miniconda
Expand All @@ -16,28 +16,27 @@ conda update -q conda
conda info -a

if [ "${LATEST}" = "true" ]; then
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy pandas scikit-learn;
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy pandas scikit-learn
else
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION pandas=$PANDAS_VERSION scikit-learn=$SKLEARN_VERSION;
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION pandas=$PANDAS_VERSION scikit-learn=$SKLEARN_VERSION
fi

source activate test-environment

pip install nose;
conda install jupyter matplotlib
pip install nose

if [ "${COVERAGE}" = "true" ]; then
pip install coverage coveralls codecov;
pip install coverage coveralls codecov
fi

python --version
python -c "import pandas; print('pandas %s' % pandas.__version__)";
python -c "import pandas; print('pandas %s' % pandas.__version__)"
python -c "import numpy; print('numpy %s' % numpy.__version__)"
python -c "import scipy; print('scipy %s' % scipy.__version__)"
python -c "import sklearn; print('sklearn %s' % sklearn.__version__)";
python -c "import sklearn; print('sklearn %s' % sklearn.__version__)"



if [ "${NOTEBOOKS}" = "true" ]; then
conda install jupyter matplotlib
fi

python setup.py install;
2 changes: 2 additions & 0 deletions ci/.travis_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -e

if [[ "$COVERAGE" == "true" ]]; then
nosetests -s -v --with-coverage
else
nosetests -s -v
fi

if [[ "$NOTEBOOKS" == "true" ]]; then
Expand Down

0 comments on commit 4388714

Please sign in to comment.