<commit_before>language: node_js
node_js:
  - '8'

sudo: required
dist: trusty

addons:
  chrome: stable

cache:
  yarn: true

before_script:
  - sudo chmod 4755 /opt/google/chrome/chrome-sandbox
  - sudo chown root /opt/google/chrome/chrome-sandbox

env:
  global:
    # See https://git.io/vdao3 for details.
    - JOBS=1

stages:
  - 'Tests'
  - 'Additional Tests'
  - 'Canary Tests'
  - name: 'Deploy'
    if: branch = master AND type = push

jobs:
  fail_fast: true
  allow_failures:
    - env: EMBER_TRY_SCENARIO=ember-canary

  include:
    # runs linting and tests with current locked deps

    - stage: 'Tests'
      name: 'Conventional Commits'
      script: commitlint-travis
    - name: 'Tests'
      install:
        - yarn install --non-interactive
      script:
        - yarn lint:ts
        - ember test

    - name: 'Floating Dependencies'
      script:
        - ember test<commit_msg>ci: precompile TS as part of linting, to catch type errors<commit_after>language: node_js
node_js:
  - '8'

sudo: required
dist: trusty

addons:
  chrome: stable

cache:
  yarn: true

before_script:
  - sudo chmod 4755 /opt/google/chrome/chrome-sandbox
  - sudo chown root /opt/google/chrome/chrome-sandbox

env:
  global:
    # See https://git.io/vdao3 for details.
    - JOBS=1

stages:
  - 'Tests'
  - 'Additional Tests'
  - 'Canary Tests'
  - name: 'Deploy'
    if: branch = master AND type = push

jobs:
  fail_fast: true
  allow_failures:
    - env: EMBER_TRY_SCENARIO=ember-canary

  include:
    # runs linting and tests with current locked deps

    - stage: 'Tests'
      name: 'Conventional Commits, Linting & Fixed Dependencies'
      install:
        - yarn install --non-interactive
      script:
        - commitlint-travis
        - yarn lint:ts
        - ember test
        - ember ts:precompile
    - name: 'Floating Dependencies'
      script:
        - ember test
{'fraction_non_alphanumeric': 0.09862142099681867, 'fraction_numerical': 0.007423117709437964, 'mean_word_length': 2.3877917414721725, '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': '2696614', 'n_tokens_mistral': 700, 'n_tokens_neox': 665, 'n_words': 177}