<commit_before>sudo: false
language: python

matrix:
  include:
  - language: generic
    os: osx
    env: TOXENV=py27
  - python: "2.6" # these are just to make travis's UI a bit prettier
    env: TOXENV=py26
  - python: "2.7"
    env: TOXENV=py27
  - python: "3.2"
    env: TOXENV=py32
  - python: "3.3"
    env: TOXENV=py33
  - python: "3.4"
    env: TOXENV=py34
  - python: "pypy"
    env: TOXENV=pypy
  # Also run the tests against cryptography master.
  - python: "2.6"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - python: "2.7"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - python: "3.2"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - python: "3.3"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - python: "3.4"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - python: "pypy"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true

  # Also run at least a little bit against an older version of OpenSSL.
  - python: "2.7"
    env:
      OPENSSL=0.9.8
    addons:
      apt:
        sources:
          - lucid
        packages:
          - libssl-dev/lucid

  # Let the cryptography master builds fail because they might be triggered by
  # cryptography changes beyond our control.
  # Also allow OS X and 0.9.8 to fail at the moment while we fix these new
  # build configurations.
  allow_failures:
  - language: generic
    os: osx
    env: TOXENV=py27
  - env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - env:
      OPENSSL=0.9.8

before_install:
  - if [ -n "$CRYPTOGRAPHY_GIT_MASTER" ]; then pip install git+https://github.com/pyca/cryptography.git;fi

install:
  - |
    if [[ "$(uname -s)" == 'Darwin' ]]; then
      brew update
      brew upgrade openssl
      curl -O https://bootstrap.pypa.io/get-pip.py
      python get-pip.py --user
      pip install --user virtualenv
    else
      pip install virtualenv
    fi
    python -m virtualenv ~/.venv
    source ~/.venv/bin/activate
    pip install coveralls coverage wheel

script:
  - |
    if [[ "$(uname -s)" == "Darwin" ]]; then
      # set our flags to use homebrew openssl
      export ARCHFLAGS="-arch x86_64"
      export LDFLAGS="-L/usr/local/opt/openssl/lib"
      export CFLAGS="-I/usr/local/opt/openssl/include"
    fi
    source ~/.venv/bin/activate
    pip install -e .
  - |
    source ~/.venv/bin/activate
    coverage run --branch --source=OpenSSL setup.py bdist_wheel test
  - |
    source ~/.venv/bin/activate
    coverage report -m
    python -c "import OpenSSL.SSL; print(OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION))"

after_success:
  - source ~/.venv/bin/activate && coveralls

notifications:
  email: false
<commit_msg>send to coveralls whether or not the build succeeds<commit_after>sudo: false
language: python

matrix:
  include:
  - language: generic
    os: osx
    env: TOXENV=py27
  - python: "2.6" # these are just to make travis's UI a bit prettier
    env: TOXENV=py26
  - python: "2.7"
    env: TOXENV=py27
  - python: "3.2"
    env: TOXENV=py32
  - python: "3.3"
    env: TOXENV=py33
  - python: "3.4"
    env: TOXENV=py34
  - python: "pypy"
    env: TOXENV=pypy
  # Also run the tests against cryptography master.
  - python: "2.6"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - python: "2.7"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - python: "3.2"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - python: "3.3"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - python: "3.4"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - python: "pypy"
    env:
      CRYPTOGRAPHY_GIT_MASTER=true

  # Also run at least a little bit against an older version of OpenSSL.
  - python: "2.7"
    env:
      OPENSSL=0.9.8
    addons:
      apt:
        sources:
          - lucid
        packages:
          - libssl-dev/lucid

  # Let the cryptography master builds fail because they might be triggered by
  # cryptography changes beyond our control.
  # Also allow OS X and 0.9.8 to fail at the moment while we fix these new
  # build configurations.
  allow_failures:
  - language: generic
    os: osx
    env: TOXENV=py27
  - env:
      CRYPTOGRAPHY_GIT_MASTER=true
  - env:
      OPENSSL=0.9.8

before_install:
  - if [ -n "$CRYPTOGRAPHY_GIT_MASTER" ]; then pip install git+https://github.com/pyca/cryptography.git;fi

install:
  - |
    if [[ "$(uname -s)" == 'Darwin' ]]; then
      brew update
      brew upgrade openssl
      curl -O https://bootstrap.pypa.io/get-pip.py
      python get-pip.py --user
      pip install --user virtualenv
    else
      pip install virtualenv
    fi
    python -m virtualenv ~/.venv
    source ~/.venv/bin/activate
    pip install coveralls coverage wheel

script:
  - |
    if [[ "$(uname -s)" == "Darwin" ]]; then
      # set our flags to use homebrew openssl
      export ARCHFLAGS="-arch x86_64"
      export LDFLAGS="-L/usr/local/opt/openssl/lib"
      export CFLAGS="-I/usr/local/opt/openssl/include"
    fi
    source ~/.venv/bin/activate
    pip install -e .
  - |
    source ~/.venv/bin/activate
    coverage run --branch --source=OpenSSL setup.py bdist_wheel test
  - |
    source ~/.venv/bin/activate
    coverage report -m
    python -c "import OpenSSL.SSL; print(OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION))"

after_script:
  - source ~/.venv/bin/activate && coveralls

notifications:
  email: false

{'fraction_non_alphanumeric': 0.1111745669141443, 'fraction_numerical': 0.01865600609175709, 'mean_word_length': 2.38749194068343, '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': '2671766', 'n_tokens_mistral': 1991, 'n_tokens_neox': 1923, 'n_words': 494}