Skip to content

Commit 324b90c

Browse files
committed
tests
1 parent 679f30c commit 324b90c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build_tools/travis/install.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ if [[ "$DISTRIB" == "conda" ]]; then
4040
source activate testenv
4141
conda install --yes numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION
4242
# only install optional dependency in python 3.6
43-
if [[ $PYTHON_VERSION == "3.6" ]]; then
44-
conda install --yes pandas keras
45-
fi
4643

4744
if [[ "$SKLEARN_VERSION" == "master" ]]; then
4845
conda install --yes cython
@@ -51,6 +48,13 @@ if [[ "$DISTRIB" == "conda" ]]; then
5148
conda install --yes scikit-learn=$SKLEARN_VERSION
5249
fi
5350

51+
if [[ $PYTHON_VERSION == "3.6" ]]; then
52+
conda install --yes pandas keras
53+
KERAS_BACKEND=tensorflow
54+
python -c "import keras.backend"
55+
sed -i -e 's/"backend":[[:space:]]*"[^"]*/"backend":\ "'$KERAS_BACKEND'/g' ~/.keras/keras.json;
56+
fi
57+
5458
conda install --yes nose pytest pytest-cov
5559
# Install nose-timer via pip
5660
pip install nose-timer codecov

0 commit comments

Comments
 (0)