<commit_before>schedules:
  commit:
    schedule: per_commit
    branches:
      include: [master, /python.*/]
    env_vars: |
      EVENT_LOOP_MANAGER='libev'
    matrix:
      exclude:
        - python: [3.4, 3.6]

  nightly_libev:
    schedule: nightly
    branches:
      include: [master]
    env_vars: |
      EVENT_LOOP_MANAGER='libev'
    matrix:
      exclude:
        - cassandra: ['2.0', '2.1', '3.0']

  nightly_gevent:
    schedule: nightly
    branches:
      include: [master]
    env_vars: |
      EVENT_LOOP_MANAGER='gevent'
    matrix:
      exclude:
        - python: [3.4, 3.6]
          cassandra: ['2.0', '2.1', '3.0']

  nightly_eventlet:
    schedule: nightly
    branches:
      include: [master]
    env_vars: |
      EVENT_LOOP_MANAGER='eventlet'
    matrix:
      exclude:
        - cassandra: ['2.0', '2.1', '3.0']

  nightly_async:
    schedule: nightly
    branches:
      include: [master]
    env_vars: |
      EVENT_LOOP_MANAGER='async'
    matrix:
      exclude:
        - cassandra: ['2.0', '2.1', '3.0']

  nightly_twister:
    schedule: nightly
    branches:
      include: [master]
    env_vars: |
      EVENT_LOOP_MANAGER='twisted'
    matrix:
      exclude:
        - cassandra: ['2.0', '2.1', '3.0']

python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  
os:
  - ubuntu/trusty64
cassandra:
  - '2.0'
  - '2.1'
  - '2.2'
  - '3.0'
  - '3.11'
env:
  CYTHON:
    - CYTHON
    - NO_CYTHON
build:
  - script: |
      export JAVA_HOME=$CCM_JAVA_HOME
      export PATH=$JAVA_HOME/bin:$PATH

      pip install git+https://github.com/pcmanus/ccm.git
      # Install dependencies
      sudo apt-get install -y libev4 libev-dev
      pip install -r test-requirements.txt
      pip install nose-ignore-docstring
      FORCE_CYTHON=False
      if [[ $CYTHON == 'CYTHON' ]]; then
        FORCE_CYTHON=True
        pip install cython
        pip install numpy
        # Install the driver & compile C extensions
        python setup.py build_ext --inplace
      else
        # Install the driver & compile C extensions with no cython
        python setup.py build_ext --inplace --no-cython
      fi

      echo "==========RUNNING CQLENGINE TESTS=========="
      EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=cqle_results.xml tests/integration/cqlengine/ || true

      echo "==========RUNNING INTEGRATION TESTS=========="
      EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml tests/integration/standard/ || true
<commit_msg>Updated build.yaml to have a clean PYTHONPATH<commit_after>schedules:
  commit:
    schedule: per_commit
    branches:
      include: [master, /python.*/]
    env_vars: |
      EVENT_LOOP_MANAGER='libev'
    matrix:
      exclude:
        - python: [3.4, 3.6]

  nightly_libev:
    schedule: nightly
    branches:
      include: [master]
    env_vars: |
      EVENT_LOOP_MANAGER='libev'
    matrix:
      exclude:
        - cassandra: ['2.0', '2.1', '3.0']

  nightly_gevent:
    schedule: nightly
    branches:
      include: [master]
    env_vars: |
      EVENT_LOOP_MANAGER='gevent'
    matrix:
      exclude:
        - python: [3.4, 3.6]
          cassandra: ['2.0', '2.1', '3.0']

  nightly_eventlet:
    schedule: nightly
    branches:
      include: [master]
    env_vars: |
      EVENT_LOOP_MANAGER='eventlet'
    matrix:
      exclude:
        - cassandra: ['2.0', '2.1', '3.0']

  nightly_async:
    schedule: nightly
    branches:
      include: [master]
    env_vars: |
      EVENT_LOOP_MANAGER='async'
    matrix:
      exclude:
        - cassandra: ['2.0', '2.1', '3.0']

  nightly_twister:
    schedule: nightly
    branches:
      include: [master]
    env_vars: |
      EVENT_LOOP_MANAGER='twisted'
    matrix:
      exclude:
        - cassandra: ['2.0', '2.1', '3.0']

python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  
os:
  - ubuntu/trusty64
cassandra:
  - '2.0'
  - '2.1'
  - '2.2'
  - '3.0'
  - '3.11'
env:
  CYTHON:
    - CYTHON
    - NO_CYTHON
build:
  - script: |
      export JAVA_HOME=$CCM_JAVA_HOME
      export PATH=$JAVA_HOME/bin:$PATH
      export PYTHONPATH=""

      pip install git+https://github.com/pcmanus/ccm.git
      # Install dependencies
      sudo apt-get install -y libev4 libev-dev
      pip install -r test-requirements.txt
      pip install nose-ignore-docstring
      FORCE_CYTHON=False
      if [[ $CYTHON == 'CYTHON' ]]; then
        FORCE_CYTHON=True
        pip install cython
        pip install numpy
        # Install the driver & compile C extensions
        python setup.py build_ext --inplace
      else
        # Install the driver & compile C extensions with no cython
        python setup.py build_ext --inplace --no-cython
      fi

      echo "==========RUNNING CQLENGINE TESTS=========="
      EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=cqle_results.xml tests/integration/cqlengine/ || true

      echo "==========RUNNING INTEGRATION TESTS=========="
      EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml tests/integration/standard/ || true

{'fraction_non_alphanumeric': 0.13947049662571379, 'fraction_numerical': 0.0207648382073023, 'mean_word_length': 2.4987893462469732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5055920', 'n_tokens_mistral': 2214, 'n_tokens_neox': 2151, 'n_words': 418}