<commit_before>notifications:
  email:
    on_success: never
    on_failure: change

dist: trusty

matrix:
  include:
    - os: linux
      env: CC=clang CXX=clang++ npm_config_clang=1
      compiler: clang

addons:
  apt:
    packages:
      # by default the container VMs have Git 1.9.1, ermagherd...
      - git-all
      # this is required to compile keytar
      - libsecret-1-dev
      # this package is essential for testing Electron in a headless fashion
      # https://github.com/electron/electron/blob/master/docs/tutorial/testing-on-headless-ci.md
      - xvfb
      # packages required for electron-installer-debian
      - fakeroot
      - dpkg
      # packages required for electron-installer-redhat
      - rpm
      # packages required for electron-installer-appimage
      - xz-utils
      - xorriso

branches:
  only:
    - master
    - /^__release-.*/

language: node_js
node_js:
  - "8.9.0"

cache:
  timeout: 600
  directories:
    - node_modules
    - $HOME/.electron
    - .eslintcache

install:
  - npm install -g yarn@1.3.2
  - yarn install --force

script:
  - yarn lint
  - yarn build:prod
  - yarn test:setup
  - yarn test

after_failure:
  - yarn test:review<commit_msg>install yarn in the recommended way, enable caching<commit_after>notifications:
  email:
    on_success: never
    on_failure: change

dist: trusty

sudo: false

matrix:
  include:
    - os: linux
      env: CC=clang CXX=clang++ npm_config_clang=1
      compiler: clang

addons:
  apt:
    packages:
      # by default the container VMs have Git 1.9.1, ermagherd...
      - git-all
      # this is required to compile keytar
      - libsecret-1-dev
      # this package is essential for testing Electron in a headless fashion
      # https://github.com/electron/electron/blob/master/docs/tutorial/testing-on-headless-ci.md
      - xvfb
      # packages required for electron-installer-debian
      - fakeroot
      - dpkg
      # packages required for electron-installer-redhat
      - rpm
      # packages required for electron-installer-appimage
      - xz-utils
      - xorriso

branches:
  only:
    - master
    - /^__release-.*/

language: node_js
node_js:
  - "8.9.0"

cache:
  yarn: true
  timeout: 600
  directories:
    - node_modules
    - $HOME/.electron
    - .eslintcache

before_install:
  - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2
  - export PATH=$HOME/.yarn/bin:$PATH

install:
  - yarn install --force

script:
  - yarn lint
  - yarn build:prod
  - yarn test:setup
  - yarn test

after_failure:
  - yarn test:review
{'fraction_non_alphanumeric': 0.098635477582846, 'fraction_numerical': 0.01091617933723197, 'mean_word_length': 2.2646310432569976, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '4277558', 'n_tokens_mistral': 911, 'n_tokens_neox': 865, 'n_words': 223}