https://github.com/zerothi/sisl
Raw File
Tip revision: a4186c58b685d3290281a0f5e71d74708cc6e22b authored by Nick Papior on 12 February 2016, 01:04:14 UTC
Prepping for release
Tip revision: a4186c5
.travis.yml
language: python

sudo: false

notifications:
  email:
     recipients:
       - nickpapior@gmail.com
     on_failure: always
     on_success: change

python:
  - 2.7
  - 3.4
  - 3.5

matrix:
  include:
   - python: 2.7
     env: PYTHONOPTIMIZE=0
   - python: 2.7
     env: PYTHONOPTIMIZE=1
   - python: 2.7
     env: PYTHONOPTIMIZE=2

install:
  - python setup.py install

script:
  - nosetests --exe sids


#
# These are setup scripts:
#

addons:
  apt:
    packages: &common_packages
      - gfortran
      - libhdf5-serial-dev 
      - libnetcdf-dev
      # Speedup builds, particularly when USE_CHROOT=1
      - eatmydata

before_install:
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
        wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh ;
    else
        wget http://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
# Do actual package installations
  - conda info -a
  - echo "nose" >> requirements.txt
  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --file requirements.txt
  - source activate test-environment
back to top