<commit_before>language: node_js

node_js:
- '8'
- '6'
- '4'

services: docker

cache:
  directories:
  - "$HOME/.yarn-cache"
  - "$HOME/.bats"

before_install:
- git clone https://github.com/sstephenson/bats.git .bats
- yarn global add greenkeeper-lockfile@1

before_script:
- greenkeeper-lockfile-update
- npm run compile

script: npm test

after_script: greenkeeper-lockfile-upload

after_success: npm run codecov

jobs:
  include:
  - stage: build docker image
    if: branch = master AND type = push
    node_js: '6'
    script:
    - yarn install --production
    - npm pack
    - docker login -u="$DOCKER_USERNAME" -p="$<PASSWORD>"
    - export TAG=`if [[ $TRAVIS_PULL_REQUEST == "false" ]] && [ -n "$TRAVIS_TAG" ]; then echo "$TRAVIS_TAG"; elif [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then echo "latest"; fi`
    - docker build -t $TRAVIS_REPO_SLUG:$COMMIT .
    - if [ -n "$TAG" ]; then echo "Tagging $TRAVIS_REPO_SLUG:$COMMIT $TRAVIS_REPO_SLUG:$TAG" && docker tag $TRAVIS_REPO_SLUG:$COMMIT $TRAVIS_REPO_SLUG:$TAG && docker push $TRAVIS_REPO_SLUG; fi
    after_script: skip
    after_success: skip
  - stage: npm release
    if: branch = master AND type = push
    node_js: '6'
    script: echo 'Deploying to npm ...'
    after_script: skip
    after_success: skip
    deploy:
    - provider: npm
      email: <EMAIL>
      api_key:
        secure: <KEY>
      on:
        tags: true
        repo: jamesramsay/hercule<commit_msg>build: fix automated deployment<commit_after>language: node_js

node_js:
- '8'
- '6'
- '4'

services: docker

cache:
  directories:
  - "$HOME/.yarn-cache"
  - "$HOME/.bats"

before_install:
- git clone https://github.com/sstephenson/bats.git .bats
- yarn global add greenkeeper-lockfile@1

before_script:
- greenkeeper-lockfile-update
- npm run compile

script: npm test

after_script: greenkeeper-lockfile-upload

after_success: npm run codecov

jobs:
  include:
  - stage: build docker image
    if: branch = master AND type = push
    node_js: '6'
    script:
    - yarn install --production
    - npm pack
    - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
    - export TAG=`if [[ $TRAVIS_PULL_REQUEST == "false" ]] && [ -n "$TRAVIS_TAG" ]; then echo "$TRAVIS_TAG"; elif [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then echo "latest"; fi`
    - docker build -t $TRAVIS_REPO_SLUG:$COMMIT .
    - if [ -n "$TAG" ]; then echo "Tagging $TRAVIS_REPO_SLUG:$COMMIT $TRAVIS_REPO_SLUG:$TAG" && docker tag $TRAVIS_REPO_SLUG:$COMMIT $TRAVIS_REPO_SLUG:$TAG && docker push $TRAVIS_REPO_SLUG; fi
    after_script: skip
    after_success: skip
  - stage: npm release
    if: branch = master AND type = push
    node_js: '6'
    script: echo 'Deploying to npm ...'
    after_script: skip
    after_success: skip
    deploy:
      provider: npm
      email: <EMAIL>
      api_key:
        secure: <KEY>
      on:
        tags: true
        repo: jamesramsay/hercule
{'fraction_non_alphanumeric': 0.13203098686426407, 'fraction_numerical': 0.0040417649040080834, 'mean_word_length': 3.14804469273743, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '1714568', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1086, 'n_words': 270}