Skip to content

Commit

Permalink
MAINT update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre committed Jun 28, 2019
1 parent 86f552d commit eae6c6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ matrix:
- env: DISTRIB="ubuntu"
# Latest release
- env: DISTRIB="conda" PYTHON_VERSION="3.6"
NUMPY_VERSION="*" SCIPY_VERSION="*" SKLEARN_VERSION="0.21"
NUMPY_VERSION="*" SCIPY_VERSION="*" SKLEARN_VERSION="0.21.2"
OPTIONAL_DEPS="false"
- env: DISTRIB="conda" PYTHON_VERSION="3.7"
NUMPY_VERSION="1.14.6" SCIPY_VERSION="1.1.0" SKLEARN_VERSION="0.21"
NUMPY_VERSION="*" SCIPY_VERSION="*" SKLEARN_VERSION="0.21.2"
OPTIONAL_DEPS="false"
- env: DISTRIB="conda" PYTHON_VERSION="3.7"
NUMPY_VERSION="*" SCIPY_VERSION="*" SKLEARN_VERSION="master"
OPTIONAL_DEPS="false"
allow_failures:
- env: DISTRIB="conda" PYTHON_VERSION="3.7"
NUMPY_VERSION="*" SCIPY_VERSION="*" SKLEARN_VERSION="master"
OPTIONAL_DEPS="false"

install: source build_tools/travis/install.sh
script: bash build_tools/travis/test_script.sh
Expand Down
7 changes: 1 addition & 6 deletions build_tools/travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

set -e

echo 'List files from cached directories'
echo 'pip:'
ls $HOME/.cache/pip

export CC=/usr/lib/ccache/gcc
export CXX=/usr/lib/ccache/g++
# Useful for debugging how ccache is used
Expand All @@ -40,8 +36,7 @@ if [[ "$DISTRIB" == "conda" ]]; then
source activate testenv
conda install --yes numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION

if [[ $PYTHON_VERSION == "3.6" ]]; then
# Tensorflow is not available in Python 3.7 yet.
if [[ "$OPTIONAL_DEPS" == "true" ]]; then
conda install --yes pandas keras tensorflow
KERAS_BACKEND=tensorflow
python -c "import keras.backend"
Expand Down

0 comments on commit eae6c6b

Please sign in to comment.