<commit_before>os: unstable

environment:
  DEBUG: electron-builder
  matrix:
    - nodejs_version: STABLE

cache:
  - node_modules -> package.json

matrix:
  fast_finish: true

build: off

version: '{build}'

shallow_clone: true

clone_depth: 1

skip_branch_with_pr: true

install:
  - ps: Install-Product node $env:nodejs_version
  - set CI=true
  - yarn

test_script:
  - yarn lint-ci
  - yarn test-ci

deploy_script:
  - cmd: powershell if (($env:appveyor_repo_name -eq 'LN-Zap/zap-desktop') -and (($env:appveyor_repo_branch -eq 'master') -or ($env:appveyor_repo_branch -eq 'next'))) { yarn release --win }

artifacts:
  - path: screenshots
    name: Screenshots
<commit_msg>ci(appveyer): upload artifacts on failure<commit_after>os: unstable

environment:
  DEBUG: electron-builder
  matrix:
    - nodejs_version: STABLE

cache:
  - node_modules -> package.json

matrix:
  fast_finish: true

build: off

version: '{build}'

shallow_clone: true

clone_depth: 1

skip_branch_with_pr: true

install:
  - ps: Install-Product node $env:nodejs_version
  - set CI=true
  - yarn

test_script:
  - yarn lint-ci
  - yarn test-ci

on_failure:
  - ps: Push-AppveyorArtifact screenshots

deploy_script:
  - cmd: powershell if (($env:appveyor_repo_name -eq 'LN-Zap/zap-desktop') -and (($env:appveyor_repo_branch -eq 'master') -or ($env:appveyor_repo_branch -eq 'next'))) { yarn release --win }

artifacts:
  - path: screenshots
    name: Screenshots

{'fraction_non_alphanumeric': 0.11727966689798751, 'fraction_numerical': 0.0013879250520471894, 'mean_word_length': 3.9215017064846416, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '595039', 'n_tokens_mistral': 559, 'n_tokens_neox': 531, 'n_words': 128}