<commit_before>language: python

python:
  - 2.7
  - 3.5

build:
  ci:
    - mkdir -p shippable/testresults
    - pip install 'tox>=1.8' testrepository junitxml
    - tox -epy${SHIPPABLE_PYTHON_VERSION//./}
    - testr last --subunit | subunit2junitxml > shippable/testresults/testr.xml
  post_ci:
    - mkdir -p shippable/codecoverage
    - pip install coverage
    - tox -ecover
    - coverage xml --omit "*tests*" -o shippable/codecoverage/coverage.xml<commit_msg>Do not use tox in shippable<commit_after>language: python

python:
  - 2.7
  - 3.5

build:
  ci:
    - export PYTHONDONTWRITEBYTECODE=1
    - export TESTS_DIR=ironic_python_heartbeater/tests/unit/
    - mkdir -p shippable/testresults
    - pip install -U -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt -r test-requirements.txt
    - pip install -U -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt .
    - pip install -U junitxml
    - ostestr --subunit --no-pretty | subunit2junitxml --no-passthrough > shippable/testresults/testr.xml
  post_ci:
    - mkdir -p shippable/codecoverage
    - coverage run --branch --include "ironic_python_heartbeater*" -m unittest discover ironic_python_heartbeater.tests.unit
    - coverage xml --omit "*tests*" -o shippable/codecoverage/coverage.xml
{'fraction_non_alphanumeric': 0.11497730711043873, 'fraction_numerical': 0.009833585476550681, 'mean_word_length': 3.0959752321981426, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '1819693', 'n_tokens_mistral': 482, 'n_tokens_neox': 470, 'n_words': 94}