<commit_before>language: python
python:
- 2.7

notifications:
  email: false

env:
  global:
  - CONDA_ARGS="--yes"
  - PIP_ARGS=""
  - PYTEST_ARGS="--cov glue"
  - CONDA_BASE="pip numpy=1.8 scipy pyside cython h5py pygments pyzmq scikit-image pandas sphinx=1.2.2 xlrd pillow pytest mock coverage"
  - PIP_BASE="pytest-cov coveralls pyavm sphinx-rtd-theme astrodendro awscli"
  - secure: <KEY>
  - secure: "<KEY>
  - AWS_ACCESS_KEY_ID: <KEY>
  - AWS_SECRET_ACCESS_KEY: $AWS_SECRET_KEY_ID

  matrix:
  - MPL_VER=1.4 ASTRO_VER=0.4 IPYTHON_VER=2 DOC_TRIGGER=1 APP_TRIGGER=1
  - MPL_VER=1.3 ASTRO_VER=0.4 IPYTHON_VER=2
  - MPL_VER=1.4 ASTRO_VER=0.3 IPYTHON_VER=2
  - MPL_VER=1.4 ASTRO_VER=dev IPYTHON_VER=2
  - MPL_VER=1.4 ASTRO_VER=0.4 IPYTHON_VER=1.1
  - MPL_VER=1.4 ASTRO_VER=0.4 IPYTHON_VER=0.13

before_install:
- source .setup_conda.sh $TRAVIS_PYTHON_VERSION
# Deal with issue on Travis builders
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Setup system for headless GUI handling
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# setup tools to trigger mac buildbot
- if [ $APP_TRIGGER ]; then source .setup_app_trigger.sh; fi
- if [ $TRAVIS_BRANCH = master ]; then export S3_DIR=latest; else export S3_DIR=$TRAVIS_BRANCH; fi


install:
- conda install $CONDA_ARGS python=$TRAVIS_PYTHON_VERSION $CONDA_BASE
- LC_ALL=C pip install $PIP_ARGS $PIP_BASE
- if [[ $ASTRO_VER == dev ]]; then pip install -e git+git://github.com/astropy/astropy.git#egg=astropy;
  else conda install $CONDA_ARGS astropy=$ASTRO_VER numpy=1.8; fi
- conda install $CONDA_ARGS IPython=$IPYTHON_VER
- conda install $CONDA_ARGS matplotlib=$MPL_VER numpy=1.8
- python setup.py install

script:
- py.test $PYTEST_ARGS glue
- if [ $DOC_TRIGGER ]; then cd doc && make html && cd ../; fi

after_success:
- coveralls
- if [ $APP_TRIGGER ]; then ./.trigger_app_build.sh; fi
- if [ $DOC_TRIGGER -a "$TRAVIS_SECURE_ENV_VARS = true" ]; then cd doc && make s3 && cd ../; fi<commit_msg>Test everything except glue/qt in Python 3.4<commit_after>language: python
python:
- 2.7
- 3.4

notifications:
  email: false

env:
  global:
  - CONDA_ARGS="--yes"
  - PIP_ARGS=""
  - PYTEST_ARGS="--cov glue"
  - CONDA_BASE="pip numpy=1.8 scipy pyside cython h5py pygments pyzmq scikit-image pandas sphinx=1.2.2 xlrd pillow pytest mock coverage"
  - PIP_BASE="pytest-cov coveralls pyavm sphinx-rtd-theme astrodendro awscli"
  - secure: <KEY>
  - secure: "<KEY>
  - AWS_ACCESS_KEY_ID: <KEY>
  - AWS_SECRET_ACCESS_KEY: $AWS_SECRET_KEY_ID

  matrix:
  - MPL_VER=1.3 ASTRO_VER=0.4 IPYTHON_VER=2
  - MPL_VER=1.4 ASTRO_VER=0.3 IPYTHON_VER=2
  - MPL_VER=1.4 ASTRO_VER=dev IPYTHON_VER=2

matrix:

    include:

        - python: 2.7
          env: MPL_VER=1.4 ASTRO_VER=0.4 IPYTHON_VER=2 DOC_TRIGGER=1 APP_TRIGGER=1

        - python: 2.7
          env: MPL_VER=1.4 ASTRO_VER=0.4 IPYTHON_VER=1.1

        - python: 2.7
          env: MPL_VER=1.4 ASTRO_VER=0.4 IPYTHON_VER=0.13

before_install:
- source .setup_conda.sh $TRAVIS_PYTHON_VERSION
# Deal with issue on Travis builders
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Setup system for headless GUI handling
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# setup tools to trigger mac buildbot
- if [ $APP_TRIGGER ]; then source .setup_app_trigger.sh; fi
- if [ $TRAVIS_BRANCH = master ]; then export S3_DIR=latest; else export S3_DIR=$TRAVIS_BRANCH; fi


install:
- conda install $CONDA_ARGS python=$TRAVIS_PYTHON_VERSION $CONDA_BASE
- LC_ALL=C pip install $PIP_ARGS $PIP_BASE
- if [[ $ASTRO_VER == dev ]]; then pip install -e git+git://github.com/astropy/astropy.git#egg=astropy;
  else conda install $CONDA_ARGS astropy=$ASTRO_VER numpy=1.8; fi
- conda install $CONDA_ARGS IPython=$IPYTHON_VER
- conda install $CONDA_ARGS matplotlib=$MPL_VER numpy=1.8
- python setup.py install

script:
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then py.test $PYTEST_ARGS glue; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.4 ]]; then py.test $PYTEST_ARGS glue/clients glue/core glue/external glue/plugins glue/tests; fi
- if [ $DOC_TRIGGER ]; then cd doc && make html && cd ../; fi

after_success:
- coveralls
- if [ $APP_TRIGGER ]; then ./.trigger_app_build.sh; fi
- if [ $DOC_TRIGGER -a "$TRAVIS_SECURE_ENV_VARS = true" ]; then cd doc && make s3 && cd ../; fi
{'fraction_non_alphanumeric': 0.1239456419868791, 'fraction_numerical': 0.02717900656044986, 'mean_word_length': 3.769832402234637, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1111061', 'n_tokens_mistral': 1858, 'n_tokens_neox': 1794, 'n_words': 408}