<commit_before>language: python

env:
    # Enable python 2 and python 3 builds
    # DEPS=full: build optional dependencies: pandas, nitime, statsmodels,
    #            scikit-learn, patsy, nibabel pillow;
    #            in the case of Python 2, also nitime, mayavi, traits, pysurfer
    # DEPS=minimal: don't build optional dependencies; tests that require those
    #               dependencies are supposed to be skipped
    # Note that we don't run coverage on Py3k because it slows our tests
    # by a factor of 2 (!)
    - PYTHON=2.7 DEPS=full TEST_LOCATION=src MNE_DONTWRITE_HOME=true
    - PYTHON=2.7 DEPS=full TEST_LOCATION=install
    - PYTHON=2.7 DEPS=nodata TEST_LOCATION=src  # also runs flake8
    - PYTHON=3.4 DEPS=full TEST_LOCATION=src
    - PYTHON=2.6 DEPS=full TEST_LOCATION=src
    - PYTHON=2.7 DEPS=minimal TEST_LOCATION=src

# Setup anaconda
before_install:
  - wget -q http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - ./miniconda.sh -b &> /dev/null;
  - export PATH=/home/travis/miniconda/bin:$PATH
  - conda update --yes --quiet conda &> /dev/null;
  # We need to create a (fake) display on Travis (allows Mayavi tests to run)
  - export DISPLAY=:99.0
  - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset

install:
    - conda create -n testenv --yes pip python=$PYTHON &> /dev/null
    - source activate testenv &> /dev/null
    - conda install --yes --quiet numpy scipy nose matplotlib > /dev/null
    - if [ "${DEPS}" == "full" ]; then
        curl http://lester.ilabs.uw.edu/files/minimal_cmds.tar.gz | tar xz;
        export MNE_ROOT="${PWD}/minimal_cmds";
        export NEUROMAG2FT_ROOT="${PWD}/minimal_cmds/bin";
        source ${MNE_ROOT}/bin/mne_setup_sh > /dev/null;
        sudo apt-get update -qq;
        sudo apt-get install -qq -y libxp6;<commit_msg>FIX: Move dontwrite<commit_after>language: python

env:
    # Enable python 2 and python 3 builds
    # DEPS=full: build optional dependencies: pandas, nitime, statsmodels,
    #            scikit-learn, patsy, nibabel pillow;
    #            in the case of Python 2, also nitime, mayavi, traits, pysurfer
    # DEPS=minimal: don't build optional dependencies; tests that require those
    #               dependencies are supposed to be skipped
    # Note that we don't run coverage on Py3k because it slows our tests
    # by a factor of 2 (!)
    - PYTHON=2.7 DEPS=full TEST_LOCATION=src
    - PYTHON=2.7 DEPS=full TEST_LOCATION=install
    - PYTHON=2.7 DEPS=nodata TEST_LOCATION=src MNE_DONTWRITE_HOME=true  # also runs flake8
    - PYTHON=3.4 DEPS=full TEST_LOCATION=src
    - PYTHON=2.6 DEPS=full TEST_LOCATION=src
    - PYTHON=2.7 DEPS=minimal TEST_LOCATION=src

# Setup anaconda
before_install:
  - wget -q http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - ./miniconda.sh -b &> /dev/null;
  - export PATH=/home/travis/miniconda/bin:$PATH
  - conda update --yes --quiet conda &> /dev/null;
  # We need to create a (fake) display on Travis (allows Mayavi tests to run)
  - export DISPLAY=:99.0
  - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset

install:
    - conda create -n testenv --yes pip python=$PYTHON &> /dev/null
    - source activate testenv &> /dev/null
    - conda install --yes --quiet numpy scipy nose matplotlib > /dev/null
    - if [ "${DEPS}" == "full" ]; then
        curl http://lester.ilabs.uw.edu/files/minimal_cmds.tar.gz | tar xz;
        export MNE_ROOT="${PWD}/minimal_cmds";
        export NEUROMAG2FT_ROOT="${PWD}/minimal_cmds/bin";
        source ${MNE_ROOT}/bin/mne_setup_sh > /dev/null;
        sudo apt-get update -qq;
        sudo apt-get install -qq -y libxp6;
{'fraction_non_alphanumeric': 0.11907139291063405, 'fraction_numerical': 0.020469296055916127, 'mean_word_length': 2.8271251193887297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '4455670', 'n_tokens_mistral': 1497, 'n_tokens_neox': 1419, 'n_words': 381}