<commit_before>language: python

services:
  - postgresql

python:
    # - 2.7
    - 3.5
    # - 3.6

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

# The apt packages below are needed for sphinx builds. A full list of packages
# that can be included can be found here:
#
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise

# addons:
#     apt:
#         packages:
#             - graphviz
#             - texlive-latex-extra
#             - dvipng

env:
    global:

        # The following versions are the 'default' for tests, unless
        # overridden underneath. They are defined here in order to save having
        # to repeat them for all configurations.
        - NUMPY_VERSION=stable
        - ASTROPY_VERSION=stable
        - MAIN_CMD='python setup.py'
        - SETUP_CMD='test'
        - PIP_DEPENDENCIES='git+https://github.com/adrn/thejoker'

        # For this package-template, we include examples of Cython modules,
        # so Cython is required for testing. If your package does not include
        # Cython code, you can set CONDA_DEPENDENCIES=''
        - CONDA_DEPENDENCIES='pyyaml sqlalchemy psycopg2'

        - CONDA_CHANNELS='astropy-ci-extras astropy'

    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:

        # Do a coverage test in Python 2.
        # - python: 2.7
        #   env: SETUP_CMD='test --coverage'

        # Check for sphinx doc build warnings - we do this first because it
        # may run for a long time
        # - python: 2.7
        #   env: SETUP_CMD='build_sphinx -w'

        # - python: 2.7
        #   env: ASTROPY_VERSION=lts
        # - python: 3.5
        #   env: ASTROPY_VERSION=lts

        # Do a PEP8 test with pycodestyle
        # - python: 3.5
        #   env: MAIN_CMD='pycodestyle packagename --count' SETUP_CMD=''

    # allow_failures:
    #     # Do a PEP8 test with pycodestyle
    #     # (allow to fail unless your code completely compliant)
    #     - python: 3.5
    #       env: MAIN_CMD='pycodestyle packagename --count' SETUP_CMD=''

install:
    - git clone git://github.com/astropy/ci-helpers.git
    - source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh

before_script:
   - cp twoface/db/tests/travis_db.cfg ~/.config/twoface/twoface.cfg
   - if [[ $SETUP_CMD != *"egg_info"* ]]; then python scripts/initdb.py --test -v; fi

script:
   - $MAIN_CMD $SETUP_CMD

after_success:
    # If coveralls.io is set up for this package, uncomment the line<commit_msg>mkdir<commit_after>language: python

services:
  - postgresql

python:
    # - 2.7
    - 3.5
    # - 3.6

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

# The apt packages below are needed for sphinx builds. A full list of packages
# that can be included can be found here:
#
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise

# addons:
#     apt:
#         packages:
#             - graphviz
#             - texlive-latex-extra
#             - dvipng

env:
    global:

        # The following versions are the 'default' for tests, unless
        # overridden underneath. They are defined here in order to save having
        # to repeat them for all configurations.
        - NUMPY_VERSION=stable
        - ASTROPY_VERSION=stable
        - MAIN_CMD='python setup.py'
        - SETUP_CMD='test'
        - PIP_DEPENDENCIES='git+https://github.com/adrn/thejoker'

        # For this package-template, we include examples of Cython modules,
        # so Cython is required for testing. If your package does not include
        # Cython code, you can set CONDA_DEPENDENCIES=''
        - CONDA_DEPENDENCIES='pyyaml sqlalchemy psycopg2'

        - CONDA_CHANNELS='astropy-ci-extras astropy'

    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:

        # Do a coverage test in Python 2.
        # - python: 2.7
        #   env: SETUP_CMD='test --coverage'

        # Check for sphinx doc build warnings - we do this first because it
        # may run for a long time
        # - python: 2.7
        #   env: SETUP_CMD='build_sphinx -w'

        # - python: 2.7
        #   env: ASTROPY_VERSION=lts
        # - python: 3.5
        #   env: ASTROPY_VERSION=lts

        # Do a PEP8 test with pycodestyle
        # - python: 3.5
        #   env: MAIN_CMD='pycodestyle packagename --count' SETUP_CMD=''

    # allow_failures:
    #     # Do a PEP8 test with pycodestyle
    #     # (allow to fail unless your code completely compliant)
    #     - python: 3.5
    #       env: MAIN_CMD='pycodestyle packagename --count' SETUP_CMD=''

install:
    - git clone git://github.com/astropy/ci-helpers.git
    - source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh

before_script:
   - mkdir -p ~/.config/twoface/
   - cp twoface/db/tests/travis_db.cfg ~/.config/twoface/twoface.cfg
   - if [[ $SETUP_CMD != *"egg_info"* ]]; then python scripts/initdb.py --test -v; fi

script:
   - $MAIN_CMD $SETUP_CMD

after_success:
    # If coveralls.io is set up for this package, uncomment the line
{'fraction_non_alphanumeric': 0.09448388858547242, 'fraction_numerical': 0.008010194793373384, 'mean_word_length': 2.20536756126021, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1137523', 'n_tokens_mistral': 1834, 'n_tokens_neox': 1770, 'n_words': 510}