From 05a64110fa1b350d43ebce6dbd646a5fa4a20a76 Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Thu, 12 Feb 2015 11:56:06 -0800 Subject: [PATCH] travis fixes? --- .travis.yml | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 08e8ee46..f000cd24 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,22 @@ python: - "2.7" virtualenv: system_site_packages: true + +# Setup anaconda before_install: - - sudo apt-get install -qq gcc gfortran libblas-dev liblapack-dev python-numpy python-scipy python-matplotlib python-pip - - sudo pip install scipy --upgrade - - sudo pip install numpy --upgrade + - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.8.3-Linux-x86_64.sh -O miniconda.sh; fi + - chmod +x miniconda.sh + - ./miniconda.sh -b + - export PATH=/home/travis/anaconda/bin:/home/travis/miniconda/bin:$PATH + - conda update --yes conda + # The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda + - sudo rm -rf /dev/shm + - sudo ln -s /run/shm /dev/shm + +# Install packages +install: + - conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib cython + - pip install nose-cov python-coveralls - cd ../ - git clone https://github.com/simpeg/simpeg.git - cd simpeg/SimPEG/ @@ -15,10 +27,14 @@ before_install: - echo export PYTHONPATH=$PYTHONPATH:/home/travis/build/simpeg/simpeg >> .bashrc - source .bashrc - cd simpegmt -# command to install dependencies -install: "pip install -r requirements.txt --use-mirrors" -# command to run tests -script: nosetests -v + +# Run test +script: + - nosetests --with-cov --cov SimPEG --cov-config .coveragerc -v -s + +# Calculate coverage +after_success: + - coveralls --config_file .coveragerc notifications: email: