From f5819a0d4e88d32b24686a12f3209d7157fc0046 Mon Sep 17 00:00:00 2001 From: Francois Chollet Date: Sun, 8 Nov 2015 16:59:14 -0800 Subject: [PATCH] Update Travis CI config --- .travis.yml | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index d1aff11f8..5f47349b9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,22 +1,32 @@ -sudo: false language: python -# Setup anaconda -before_install: - - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh - - chmod +x miniconda.sh - - ./miniconda.sh -b - - export PATH=/home/travis/miniconda/bin:$PATH - - conda update --yes conda python: - "2.7" - "3.4" -# command to install dependencies install: - - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pandas pytest h5py + # code below is taken from http://conda.pydata.org/docs/travis.html + - sudo apt-get update + # 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 numpy scipy matplotlib pandas pytest h5py + - source activate test-environment - pip install pytest-cov python-coveralls - pip install git+git://github.com/Theano/Theano.git + - python setup.py install # command to run tests script: - PYTHONPATH=$PWD:$PYTHONPATH py.test -v --cov-report term-missing --cov keras tests/ after_success: - - coveralls + - coveralls \ No newline at end of file