<commit_before>sudo: required

services:
  - docker

language: node_js

node_js:
  - 7

script:
  - npm run eslint

after_success:
  - if [[ $TRAVIS_PULL_REQUEST != "false" ]]; then exit 0; fi
  - docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY
  - export COMMIT=${TRAVIS_COMMIT::8}
  - docker build -f Dockerfile -t $DOCKER_REPO:$COMMIT .
  - docker tag $DOCKER_REPO:$COMMIT $DOCKER_REPO:$TRAVIS_BRANCH
  - if [[ $TRAVIS_TAG ]]; then docker tag $DOCKER_REPO:$COMMIT $DOCKER_REPO:stable; fi
  - docker push $DOCKER_REPO<commit_msg>Automatically publich tagged releases to npm<commit_after>sudo: required

services:
  - docker

language: node_js

node_js:
  - 7

script:
  - npm run eslint

after_success:
  - if [[ $TRAVIS_PULL_REQUEST != "false" ]]; then exit 0; fi
  - docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY
  - export COMMIT=${TRAVIS_COMMIT::8}
  - docker build -f Dockerfile -t $DOCKER_REPO:$COMMIT .
  - docker tag $DOCKER_REPO:$COMMIT $DOCKER_REPO:$TRAVIS_BRANCH
  - if [[ $TRAVIS_TAG ]]; then docker tag $DOCKER_REPO:$COMMIT $DOCKER_REPO:stable; fi
  - docker push $DOCKER_REPO

deploy:
  provider: npm
  api_key: $NPM_AUTH_TOKEN
  on:
    tags: true
{'fraction_non_alphanumeric': 0.11480865224625623, 'fraction_numerical': 0.004991680532445923, 'mean_word_length': 4.1191489361702125, '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': '3889208', 'n_tokens_mistral': 525, 'n_tokens_neox': 489, 'n_words': 112}