<commit_before>language: python
python:
  - '2.7'
addons:
  apt:
    sources:
      - debian-sid
    packages:
      - shellcheck
sudo: required
dist: trusty
install:
  - source cfg4dev
  # installing ndg-httpsclient eliminates a TLS warning
  # generated by coveralls
  - pip install ndg-httpsclient==0.4.2
  - pip install coveralls
script:
  - pep8
  - flake8
  - shellcheck --version
  - shellcheck $(find . -name \*.sh | grep -v \.\/env)
  - nosetests --with-coverage --cover-branches --cover-erase --cover-package clair_cicd
  - coveralls || true
  - python setup.py sdist --formats=gztar
  - if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_TAG" != "" ]; then ./dockerfiles/build-docker-images.sh -t "$TRAVIS_TAG" ./dist/clair-cicd-*.*.*.tar.gz $DOCKERHUB_USERNAME $DOCKERHUB_PASSWORD; fi
<commit_msg>sync dev env & travis shellcheck version<commit_after>language: python
python:
  - '2.7'
sudo: required
dist: trusty
install:
  - source cfg4dev
  # installing ndg-httpsclient eliminates a TLS warning
  # generated by coveralls
  - pip install ndg-httpsclient==0.4.2
  - pip install coveralls
  - docker pull koalaman/shellcheck:v0.4.6
script:
  - pep8
  - flake8
  - docker run -v "$PWD:/mnt" koalaman/shellcheck:v0.4.6 $(find . -name \*.sh | grep -v \.\/env)
  - nosetests --with-coverage --cover-branches --cover-erase --cover-package clair_cicd
  - coveralls || true
  - python setup.py sdist --formats=gztar
  - if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_TAG" != "" ]; then ./dockerfiles/build-docker-images.sh -t "$TRAVIS_TAG" ./dist/clair-cicd-*.*.*.tar.gz $DOCKERHUB_USERNAME $DOCKERHUB_PASSWORD; fi

{'fraction_non_alphanumeric': 0.1503388786198398, 'fraction_numerical': 0.013555144793592114, 'mean_word_length': 3.0701754385964914, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1394248', 'n_tokens_mistral': 627, 'n_tokens_neox': 608, 'n_words': 140}