<commit_before>language: node_js

jobs:
  include:
    - stage: spec tests 👩🏽‍💻
      script: npm run test:specs
      node_js: lts/*

    - stage: unit tests 👩🏽‍💻
      script: npm run test:unit
      node_js: lts/*

    - stage: integration tests 👩🏽‍💻
      script: npm run test:integration
      node_js: v0.10
    - node_js: v4
    - node_js: lts/*
    - node_js: node

    - stage: lint ✨
      script: npm run test:lint
      node_js: lts/*
<commit_msg>add minify stage<commit_after>language: node_js

jobs:
  include:
    - stage: spec tests 👩🏽‍💻
      script: npm run test:specs
      node_js: lts/*

    - stage: unit tests 👩🏽‍💻
      script: npm run test:unit
      node_js: lts/*

    - stage: integration tests 👩🏽‍💻
      script: npm run test:integration
      node_js: v0.10
    - node_js: v4
    - node_js: lts/*
    - node_js: node

    - stage: lint ✨
      script: npm run test:lint
      node_js: lts/*

    - stage: minify 🗜️
      script: |
        npm run build
        if ! git diff --quiet; then
          git config --global user.email "<EMAIL>"
          git config --global user.name "Travis-CI"
          git config credential.helper "store --file=.git/credentials"
          echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials
          git commit -am 'minify [skip ci]'
          git push origin HEAD:${TRAVIS_BRANCH}
        fi
      node_js: lts/*
      if: branch = master AND type = push

{'fraction_non_alphanumeric': 0.11740041928721175, 'fraction_numerical': 0.005590496156533892, 'mean_word_length': 1.9404517453798769, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '3157876', 'n_tokens_mistral': 557, 'n_tokens_neox': 534, 'n_words': 149}