<commit_before>sudo: false
language: python
dist: xenial
stages:
- baseline
- name: test
  if: repo = pytest-dev/pytest AND tag IS NOT present
- name: deploy
  if: repo = pytest-dev/pytest AND tag IS present
python:
  - '3.7'
install:
  - pip install --upgrade --pre tox
env:
  matrix:
    - TOXENV=py27
    # Specialized factors for py27.
    - TOXENV=py27-nobyte
    - TOXENV=py27-xdist
    - TOXENV=py27-pluggymaster
    # Specialized factors for py37.
    - TOXENV=py37-pexpect,py37-trial,py37-numpy
    - TOXENV=py37-pluggymaster
    - TOXENV=py37-freeze PYTEST_NO_COVERAGE=1

matrix:
  allow_failures:
    - python: '3.8-dev'
      env: TOXENV=py38

jobs:
  include:
    # Coverage tracking is slow with pypy, skip it.
    - env: TOXENV=pypy PYTEST_NO_COVERAGE=1
      python: 'pypy-5.4'
      dist: trusty
    - env: TOXENV=py34
      python: '3.4'
    - env: TOXENV=py35
      python: '3.5'
    - env: TOXENV=py36
      python: '3.6'
    - env: TOXENV=py38
      python: '3.8-dev'
    - env: TOXENV=py37
    - &test-macos
      language: generic
      os: osx
      osx_image: xcode9.4
      sudo: required
      install:
        - python -m pip install --pre tox
      env: TOXENV=py27
    - <<: *test-macos
      env: TOXENV=py37
      before_install:
        - brew update
        - brew upgrade python
        - brew unlink python
        - brew link python

    - stage: baseline
      env: TOXENV=py27-pexpect,py27-trial,py27-numpy
    - env: TOXENV=py37-xdist
    - env: TOXENV=linting,docs,doctesting
      python: '3.7'

    - stage: deploy
      python: '3.6'
      env: PYTEST_NO_COVERAGE=1
      install: pip install -U setuptools setuptools_scm
      script: skip
      deploy:
        provider: pypi
        user: nicoddemus
        distributions: sdist bdist_wheel
        skip_upload_docs: true
        password:
          <PASSWORD>: <KEY>
        on:
          tags: true
          repo: pytest-dev/pytest

before_script:
  - |<commit_msg>Travis: test py38-dev only with cron builds<commit_after>sudo: false
language: python
dist: xenial
stages:
- baseline
- name: test
  if: repo = pytest-dev/pytest AND tag IS NOT present
- name: deploy
  if: repo = pytest-dev/pytest AND tag IS present
- name: cron_only
  if: type = cron
python:
  - '3.7'
install:
  - pip install --upgrade --pre tox
env:
  matrix:
    - TOXENV=py27
    # Specialized factors for py27.
    - TOXENV=py27-nobyte
    - TOXENV=py27-xdist
    - TOXENV=py27-pluggymaster
    # Specialized factors for py37.
    - TOXENV=py37-pexpect,py37-trial,py37-numpy
    - TOXENV=py37-pluggymaster
    - TOXENV=py37-freeze PYTEST_NO_COVERAGE=1

matrix:
  allow_failures:
    - python: '3.8-dev'
      env: TOXENV=py38

jobs:
  include:
    # Coverage tracking is slow with pypy, skip it.
    - env: TOXENV=pypy PYTEST_NO_COVERAGE=1
      python: 'pypy-5.4'
      dist: trusty
    - env: TOXENV=py34
      python: '3.4'
    - env: TOXENV=py35
      python: '3.5'
    - env: TOXENV=py36
      python: '3.6'
    - env: TOXENV=py37
    - &test-macos
      language: generic
      os: osx
      osx_image: xcode9.4
      sudo: required
      install:
        - python -m pip install --pre tox
      env: TOXENV=py27
    - <<: *test-macos
      env: TOXENV=py37
      before_install:
        - brew update
        - brew upgrade python
        - brew unlink python
        - brew link python

    - stage: baseline
      env: TOXENV=py27-pexpect,py27-trial,py27-numpy
    - env: TOXENV=py37-xdist
    - env: TOXENV=linting,docs,doctesting
      python: '3.7'

    - stage: cron_only
      env: TOXENV=py38
      python: '3.8-dev'

    - stage: deploy
      python: '3.6'
      env: PYTEST_NO_COVERAGE=1
      install: pip install -U setuptools setuptools_scm
      script: skip
      deploy:
        provider: pypi
        user: nicoddemus
        distributions: sdist bdist_wheel
        skip_upload_docs: true
        password:
          secure: <KEY>
        on:
          tags: true
          repo: pytest-dev/pytest

before_script:
  - |
{'fraction_non_alphanumeric': 0.10034860557768924, 'fraction_numerical': 0.0348605577689243, 'mean_word_length': 2.050113895216401, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2515933', 'n_tokens_mistral': 1585, 'n_tokens_neox': 1517, 'n_words': 353}