<commit_before>language: c

compiler: gcc

# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false

os:
    - linux

stage: Comprehensive tests

# The apt packages below are needed for sphinx builds, which can no longer
# be installed with sudo apt-get.
addons:
    apt:
        packages:
            - graphviz
            - texlive-latex-extra
            - dvipng

env:
    global:
        # The following versions are the 'default' for tests, unless
        # overidden underneath. They are defined here in order to save having
        # to repeat them for all configurations.
        - PYTHON_VERSION=3.6
        - MAIN_CMD='python setup.py'
        - NUMPY_VERSION=stable
        - ASTROPY_VERSION=stable
        - SETUP_CMD='test'
        - CONDA_DEPENDENCIES='cython jinja2 scipy matplotlib pyyaml h5py sympy qt ipython jupyter notebook ipykernel numexpr' # SEE PANDOC HACK BELOW
        - PIP_DEPENDENCIES='nbsphinx==0.3.1'
        - CONDA_CHANNELS='astropy-ci-extras astropy'
        - INSTALL_GSL=1

    matrix:
        # Make sure that egg_info works without dependencies
        - SETUP_CMD='egg_info'
        # Try all python versions with the latest numpy
        - SETUP_CMD='test'

matrix:
    # Don't wait for allowed failures
    fast_finish: true

    include:

        # Check for sphinx doc build warnings - we do this first because it
        # may run for a long time
        - os: linux
          env: SETUP_CMD='install build_sphinx -w' # install needed for nbsphinx to run

        - os: linux
          env: SETUP_CMD='test --coverage'

        # Try Astropy development version
        - os: linux
          env: ASTROPY_VERSION=development

        # Try Numpy development version
        - os: linux
          env: NUMPY_VERSION=development

        - os: linux
          env: PYTHON_VERSION=3.5

        - os: linux
          env: PYTHON_VERSION=3.7

        - os: linux
          env: INSTALL_GSL=0
          env: SETUP_CMD='install --nogsl'

before_install:

    # If there are matplotlib tests, comment these out to
    # Make sure that interactive matplotlib backends work
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start

install:
    - git clone git://github.com/astropy/ci-helpers.git
    - source ci-helpers/travis/setup_conda.sh
    - conda install -c conda-forge pandoc
    - if [[ $INSTALL_GSL == 1 ]]; then
        - conda install -c conda-forge gsl
      fi

script:
    - $MAIN_CMD $SETUP_CMD

after_success:
    # If coveralls.io is set up for this package, uncomment the line
    # below and replace "packagename" with the name of your package.
    # The coveragerc file may be customized as needed for your package.
    - if [[ $SETUP_CMD == 'test --coverage' ]]; then
        coveralls --rcfile='gala/tests/coveragerc';<commit_msg>two envs<commit_after>language: c

compiler: gcc

# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false

os:
    - linux

stage: Comprehensive tests

# The apt packages below are needed for sphinx builds, which can no longer
# be installed with sudo apt-get.
addons:
    apt:
        packages:
            - graphviz
            - texlive-latex-extra
            - dvipng

env:
    global:
        # The following versions are the 'default' for tests, unless
        # overidden underneath. They are defined here in order to save having
        # to repeat them for all configurations.
        - PYTHON_VERSION=3.6
        - MAIN_CMD='python setup.py'
        - NUMPY_VERSION=stable
        - ASTROPY_VERSION=stable
        - SETUP_CMD='test'
        - CONDA_DEPENDENCIES='cython jinja2 scipy matplotlib pyyaml h5py sympy qt ipython jupyter notebook ipykernel numexpr' # SEE PANDOC HACK BELOW
        - PIP_DEPENDENCIES='nbsphinx==0.3.1'
        - CONDA_CHANNELS='astropy-ci-extras astropy'
        - INSTALL_GSL=1

    matrix:
        # Make sure that egg_info works without dependencies
        - SETUP_CMD='egg_info'
        # Try all python versions with the latest numpy
        - SETUP_CMD='test'

matrix:
    # Don't wait for allowed failures
    fast_finish: true

    include:

        # Check for sphinx doc build warnings - we do this first because it
        # may run for a long time
        - os: linux
          env: SETUP_CMD='install build_sphinx -w' # install needed for nbsphinx to run

        - os: linux
          env: SETUP_CMD='test --coverage'

        # Try Astropy development version
        - os: linux
          env: ASTROPY_VERSION=development

        # Try Numpy development version
        - os: linux
          env: NUMPY_VERSION=development

        - os: linux
          env: PYTHON_VERSION=3.5

        - os: linux
          env: PYTHON_VERSION=3.7

        - os: linux
          env: INSTALL_GSL=0 SETUP_CMD='install --nogsl'

before_install:

    # If there are matplotlib tests, comment these out to
    # Make sure that interactive matplotlib backends work
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start

install:
    - git clone git://github.com/astropy/ci-helpers.git
    - source ci-helpers/travis/setup_conda.sh
    - conda install -c conda-forge pandoc
    - if [[ $INSTALL_GSL == 1 ]]; then
        - conda install -c conda-forge gsl
      fi

script:
    - $MAIN_CMD $SETUP_CMD

after_success:
    # If coveralls.io is set up for this package, uncomment the line
    # below and replace "packagename" with the name of your package.
    # The coveragerc file may be customized as needed for your package.
    - if [[ $SETUP_CMD == 'test --coverage' ]]; then
        coveralls --rcfile='gala/tests/coveragerc';
{'fraction_non_alphanumeric': 0.07707369170523318, 'fraction_numerical': 0.006051975792096832, 'mean_word_length': 2.1944286526435475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3767791', 'n_tokens_mistral': 1815, 'n_tokens_neox': 1734, 'n_words': 559}