<commit_before># https://travis-ci.org/HearthSim/Sunwell
sudo: false
language: node_js
node_js:
  - "7"
  - "8"

cache:
  - yarn
  - pip

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-6
      - libgif-dev
      - libcairo2-dev
      - libjpeg8-dev
      - libpango1.0-dev

env:
  - CXX=g++-6

jobs:
  include:
    - stage: deploy
      if: branch = master AND type = push
      node_js: 8
      install:
      - npm install yarn
      - yarn --pure-lockfile
      - pip install --user awscli
      script:
      - yarn run build
      - NODE_ENV=production yarn run build
      - cp -r assets/ dist/
      - aws s3 sync --delete dist/ s3://$S3_DEFAULT_BUCKET/branches/$TRAVIS_BRANCH/

script:
  - yarn run build
  - NODE_ENV=production yarn run build
  - yarn run qa

notifications:
  email:
    on_failure: always
    on_success: change
  irc:
    channels:
      - "chat.freenode.net#hearthsim-commits"
    use_notice: true
    skip_join: true
    on_failure: always
    on_success: change
    template:
      - "(%{branch} @ %{commit} : %{author}): %{message} %{build_url}"<commit_msg>Deploy releases to npm<commit_after># https://travis-ci.org/HearthSim/Sunwell
sudo: false
language: node_js
node_js:
  - "7"
  - "8"

cache:
  - yarn
  - pip

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-6
      - libgif-dev
      - libcairo2-dev
      - libjpeg8-dev
      - libpango1.0-dev

env:
  - CXX=g++-6

jobs:
  include:
    - stage: deploy
      if: branch = master AND type = push
      node_js: 8
      install:
      - npm install yarn
      - yarn --pure-lockfile
      - pip install --user awscli
      script:
      - yarn run build
      - NODE_ENV=production yarn run build
      - cp -r assets/ dist/
      - aws s3 sync --delete dist/ s3://$S3_DEFAULT_BUCKET/branches/$TRAVIS_BRANCH/
      deploy:
        provider: npm
        email: $NPM_EMAIL
        api_key: $NPM_AUTH_TOKEN
        skip_cleanup: true
        on:
          tags: true
          repo: HearthSim/Sunwell

script:
  - yarn run build
  - NODE_ENV=production yarn run build
  - yarn run qa

notifications:
  email:
    on_failure: always
    on_success: change
  irc:
    channels:
      - "chat.freenode.net#hearthsim-commits"
    use_notice: true
    skip_join: true
    on_failure: always
    on_success: change
    template:
      - "(%{branch} @ %{commit} : %{author}): %{message} %{build_url}"
{'fraction_non_alphanumeric': 0.11287693561532193, 'fraction_numerical': 0.009779951100244499, 'mean_word_length': 1.9613992762364294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4277640', 'n_tokens_mistral': 928, 'n_tokens_neox': 887, 'n_words': 212}