<commit_before># vim ft=yaml

# After changing this file, check it on:
#   http://lint.travis-ci.org/


language: python

python:
    - 2.6

matrix:
    include:
        - python: 2.7
          env:
            - PYTHON=python
            - PYVER=2.x
        - python: 3.2
          env:
            - PYTHON=python3
            - PYVER=3.x
    exclude:
        - python: 2.6

virtualenv:
    system_site_packages: true

before_install:
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start

    - sudo apt-get update
    - sudo apt-get install $PYTHON-numpy
    - sudo apt-get install $PYTHON-scipy
    - sudo apt-get install libfreeimage3

    - if [[ $PYVER == '2.x' ]]; then
    -   sudo apt-get install $PYTHON-qt4;
    -   sudo apt-get install $PYTHON-matplotlib;
    - fi
    - if [[ $PYVER == '3.x' ]]; then
    -   sudo apt-get install $PYTHON-pyqt4;
    -   pip install --use-mirrors matplotlib;
    - fi

    - pip install --use-mirrors cython
    - pip install --use-mirrors flake8
    - pip install --use-mirrors six

    - pip install --use-mirrors nose-cov
    - pip install --use-mirrors python-coveralls

    - python check_bento_build.py

install:
    - python setup.py build_ext --inplace

script:
    # Matplotlib settings
    - mkdir $HOME/.matplotlib
    - touch $HOME/.matplotlib/matplotlibrc
    - "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
    - "echo 'backend.qt4 : PyQt4' >> $HOME/.matplotlib/matplotlibrc"

    # Run all tests
    - nosetests --exe -v --with-doctest --with-cov --cov skimage --cov-config .coveragerc skimage

    # Run all doc examples
    - export PYTHONPATH=$(pwd):$PYTHONPATH
    - for f in doc/examples/*.py; do $PYTHON "$f"; if [ $? -ne 0 ]; then exit 1; fi done
    - for f in doc/examples/applications/*.py; do $PYTHON "$f"; if [ $? -ne 0 ]; then exit 1; fi done

    # Run pep8 and flake tests
    - flake8 --exit-zero --exclude=test_*,six.py skimage doc/examples viewer_examples

after_success:
    - coveralls<commit_msg>Only run coverage for Python 3.<commit_after># vim ft=yaml

# After changing this file, check it on:
#   http://lint.travis-ci.org/


language: python

python:
    - 2.6

matrix:
    include:
        - python: 2.7
          env:
            - PYTHON=python
            - PYVER=2.x
        - python: 3.2
          env:
            - PYTHON=python3
            - PYVER=3.x
    exclude:
        - python: 2.6

virtualenv:
    system_site_packages: true

before_install:
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start

    - sudo apt-get update
    - sudo apt-get install $PYTHON-numpy
    - sudo apt-get install $PYTHON-scipy
    - sudo apt-get install libfreeimage3

    - if [[ $PYVER == '2.x' ]]; then
    -   sudo apt-get install $PYTHON-qt4;
    -   sudo apt-get install $PYTHON-matplotlib;
    - fi
    - if [[ $PYVER == '3.x' ]]; then
    -   sudo apt-get install $PYTHON-pyqt4;
    -   pip install --use-mirrors matplotlib;
    - fi

    - pip install --use-mirrors cython
    - pip install --use-mirrors flake8
    - pip install --use-mirrors six

    - pip install --use-mirrors nose-cov
    - pip install --use-mirrors python-coveralls

    - python check_bento_build.py

install:
    - python setup.py build_ext --inplace

script:
    # Matplotlib settings
    - mkdir $HOME/.matplotlib
    - touch $HOME/.matplotlib/matplotlibrc
    - "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
    - "echo 'backend.qt4 : PyQt4' >> $HOME/.matplotlib/matplotlibrc"

    # Run all tests
    - if [[ $PYVER == '3.x' ]]; then
    -   nosetests --exe -v --with-doctest --with-cov --cov skimage --cov-config .coveragerc skimage
    - else
    -   nosetests --exe -v --with-doctest skimage
    - fi
    # Run all doc examples
    - export PYTHONPATH=$(pwd):$PYTHONPATH
    - for f in doc/examples/*.py; do $PYTHON "$f"; if [ $? -ne 0 ]; then exit 1; fi done
    - for f in doc/examples/applications/*.py; do $PYTHON "$f"; if [ $? -ne 0 ]; then exit 1; fi done

    # Run pep8 and flake tests
    - flake8 --exit-zero --exclude=test_*,six.py skimage doc/examples viewer_examples

after_success:
     - if [[ $PYVER == '3.x' ]]; then
     -   coveralls
     - fi
{'fraction_non_alphanumeric': 0.13066410932630065, 'fraction_numerical': 0.014145288899544474, 'mean_word_length': 1.9821300929235168, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6757922', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1508, 'n_words': 390}