<commit_before>sudo: false
dist: trusty
language: node_js
node_js:
- '8'
- '10'
os:
- linux
cache:
  directories:
  - bower_components
  - "$HOME/.npm"
  - "$(npm config get prefix)"
before_install:
- npm install -g codecov bower
install:
- npm install
- bower install
after_success: npm run report-coverage
before_deploy:
- mv $(npm pack 2>/dev/null) nodecg-${TRAVIS_TAG}.tgz
deploy:
  - provider: releases
    api_key:
      secure: <KEY>
    file: nodecg-${TRAVIS_TAG}.tgz
    skip_cleanup: true
    on:
      tags: true
      repo: nodecg/nodecg
  - provider: npm
    email:
      secure: <KEY>
    api_key:
      secure: <KEY>
    skip_cleanup: true
    tag: next
    on:
      branch: master<commit_msg>chore(CI): use travis build stages for releases (#453)<commit_after>sudo: false
dist: trusty
language: node_js
node_js:
- '8'
- '10'
os:
- linux
cache:
  directories:
  - bower_components
  - "$HOME/.npm"
  - "$(npm config get prefix)"
before_install:
- npm install -g codecov bower
install:
- npm install
- bower install
after_success: npm run report-coverage
jobs:
  include:
  - stage: "NPM Release next"
    if: type = push AND branch = master
    script: skip
    before_deploy:
    - git reset --hard
    - npm version $(npm view nodecg version)-master.$(git rev-parse --short HEAD)
    deploy:
      provider: npm
      tag: next
      email:
        secure: <KEY>
      api_key:
        secure: <KEY>
      skip_cleanup: true
      on:
        branch: master
  - stage: "GitHub Release"
    if: type = push AND tag IS present
    script: skip
    before_deploy:
    - mv $(npm pack 2>/dev/null) "nodecg-${TRAVIS_TAG}.tgz"
    deploy:
      provider: releases
      api_key:
        secure: <KEY>
      file: "nodecg-${TRAVIS_TAG}.tgz"
      skip_cleanup: true
      on:
        tags: true
{'fraction_non_alphanumeric': 0.11412742382271468, 'fraction_numerical': 0.006094182825484765, 'mean_word_length': 2.5067961165048542, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '852542', 'n_tokens_mistral': 661, 'n_tokens_neox': 619, 'n_words': 184}