<commit_before>language: python

# Used travis-ci guide as base: https://blog.travis-ci.com/2019-08-07-extensive-python-testing-on-travis-ci

# ===== Linux ======
dist: xenial
python:
  - 2.7
  - 3.7

matrix:
  include:
    # ======= OSX ========
    - name: "Python 2.7.14 on macOS 10.13"
      os: osx
      osx_image: xcode9.3   # Python 2.7.14_2 running on macOS 10.13
      language: shell       # 'language: python' is an error on Travis CI macOS
      before_install:
        - python --version
        # - pip install -U pip
        # - python -m pip install --upgrade pip
        - pip install pytest --user
        - pip install pytest-cov --user
        - pip install flake8 --user
      install: pip install --user -r requirements.txt # install dependencies
      before_script:
        - python -m flake8 --exit-zero --exclude ./config,./github,./scripts,./tests --ignore=E501
      script: python -m pytest
      after_success: python -m codecov
    - name: "Python 3.7.3 on macOS 10.14"
      os: osx
      osx_image: xcode10.2  # Python 3.7.3 running on macOS 10.14.3
      language: shell       # 'language: python' is an error on Travis CI macOS
      before_install:
        - python3 --version
        - pip3 install -U pip
        - pip3 install -U pytest
        - pip3 install codecov
        - pip3 install flake8
      script: python3 -m pytest
      after_success: python 3 -m codecov
    #  ====== WINDOWS =========
    - name: "Python 2.7 on Windows"
      os: windows           # Windows 10.0.17134 N/A Build 17134
      language: shell # 'language: python' errors Travis CI Windows
      before_install:
        - choco install python2
        - python --version
        - python -m pip install --upgrade pip
        - pip install --upgrade pytest
        - pip install codecov
        - pip install flake8
      env: PATH=/c/Python27:/c/Python27/Scripts:$PATH
    - name: "Python 3.7.4 on Windows"
      os: windows           # Windows 10.0.17134 N/A Build 17134
      language: shell       # 'language: python' is an error on Travis CI Windows
      before_install:
        - choco install python --version 3.7.4
        - python --version
        - python -m pip install --upgrade pip
        - pip3 install --upgrade pytest
        - pip3 install codecov
        - pip3 install flake8
      env: PATH=/c/Python37:/c/Python37/Scripts:$PATH

cache:
  - pip

before_install:
  - python --version<commit_msg>Don't generate codecov on windows<commit_after>language: python

# Used travis-ci guide as base: https://blog.travis-ci.com/2019-08-07-extensive-python-testing-on-travis-ci

# ===== Linux ======
dist: xenial
python:
  - 2.7
  - 3.7

matrix:
  include:
    # ======= OSX ========
    - name: "Python 2.7.14 on macOS 10.13"
      os: osx
      osx_image: xcode9.3   # Python 2.7.14_2 running on macOS 10.13
      language: shell       # 'language: python' is an error on Travis CI macOS
      before_install:
        - python --version
        # - pip install -U pip
        # - python -m pip install --upgrade pip
        - pip install pytest --user
        - pip install pytest-cov --user
        - pip install flake8 --user
      install: pip install --user -r requirements.txt # install dependencies
      before_script:
        - python -m flake8 --exit-zero --exclude ./config,./github,./scripts,./tests --ignore=E501
      script: python -m pytest
      after_success: python -m codecov
    - name: "Python 3.7.3 on macOS 10.14"
      os: osx
      osx_image: xcode10.2  # Python 3.7.3 running on macOS 10.14.3
      language: shell       # 'language: python' is an error on Travis CI macOS
      before_install:
        - python3 --version
        - pip3 install -U pip
        - pip3 install -U pytest
        - pip3 install codecov
        - pip3 install flake8
      script: python3 -m pytest
      after_success: python 3 -m codecov
    #  ====== WINDOWS =========
    - name: "Python 2.7 on Windows"
      os: windows           # Windows 10.0.17134 N/A Build 17134
      language: shell # 'language: python' errors Travis CI Windows
      before_install:
        - choco install python2
        - python --version
        - python -m pip install --upgrade pip
        - pip install --upgrade pytest
        - pip install codecov
        - pip install flake8
      env: PATH=/c/Python27:/c/Python27/Scripts:$PATH
      script: pytest # run tests
    - name: "Python 3.7.4 on Windows"
      os: windows           # Windows 10.0.17134 N/A Build 17134
      language: shell       # 'language: python' is an error on Travis CI Windows
      before_install:
        - choco install python --version 3.7.4
        - python --version
        - python -m pip install --upgrade pip
        - pip3 install --upgrade pytest
        - pip3 install codecov
        - pip3 install flake8
      env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
      script: pytest # run tests

cache:
  - pip

before_install:
  - python --version
{'fraction_non_alphanumeric': 0.10983474405481661, 'fraction_numerical': 0.04433696090286175, 'mean_word_length': 1.8871436881908086, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5745081', 'n_tokens_mistral': 1694, 'n_tokens_neox': 1532, 'n_words': 501}