<commit_before>sudo: false
dist: trusty

addons:
  chrome: stable

language: node_js
node_js:
  - "10"

branches:
  only:
    - master
    - beta
    - release
    - auto
    - /^greenkeeper.*$/

cache:
  yarn: true
  directories:
    - $HOME/.npm
    - $HOME/.cache # includes bower's cache

stages:
  - basic test
  - additional tests
  - name: deploy
    if: type IN (push) AND branch = release

jobs:
  fail_fast: true

  include:

    - stage: basic test
      env: NAME=test # used only to make Travis UI show description
      script:
        - yarn test

    - stage: additional tests
      env: NAME=NODE_6
      node_js: 6

    - env: NAME=NODE_8
      node_js: 8

    - env: NAME=NODE_10
      node_js: 10
      script:
        - yarn test:cover
      after_success:
        - .travis/codecoverage.sh

    - env: EMBER_CLI_ENABLE_ALL_EXPERIMENTS=true
    - env: EMBER_CLI_PACKAGER=true
    - env: EMBER_CLI_MODULE_UNIFICATION=true
    - env: EMBER_CLI_DELAYED_TRANSPILATION=true
    - env: EMBER_CLI_BROCCOLI_2=true
    - env:
      - EMBER_CLI_SYSTEM_TEMP=true
      - EMBER_CLI_BROCCOLI_2=true

    - stage: deploy
      script: ./.travis/deploy.sh

before_install:
  # prevent the npm loading indicator
  - npm config --global set spin false
  # if npm version is less than 3.0.0, upgrade to 3
  - if [[ $(npm -v | cut -d '.' -f 1) -lt 3 ]]; then npm i -g npm@^3; fi
  # if npm version is newer than 4, downgrade to 4
  - if [[ $(npm -v | cut -d '.' -f 1) -gt 4 ]]; then npm i -g npm@^4; fi

  # travis currently includes yarn v0.17.8 (20170705)
  # this isn't new enough for our use of --non-interactive
  - curl -o- -L https://yarnpkg.com/install.sh | bash
  - export PATH=$HOME/.yarn/bin:$PATH

script:
  - yarn test:all<commit_msg>Use default system `npm` in CI.<commit_after>sudo: false
dist: trusty

addons:
  chrome: stable

language: node_js
node_js:
  - "10"

branches:
  only:
    - master
    - beta
    - release
    - auto
    - /^greenkeeper.*$/

cache:
  yarn: true
  directories:
    - $HOME/.npm
    - $HOME/.cache # includes bower's cache

stages:
  - basic test
  - additional tests
  - name: deploy
    if: type IN (push) AND branch = release

jobs:
  fail_fast: true

  include:

    - stage: basic test
      env: NAME=test # used only to make Travis UI show description
      script:
        - yarn test

    - stage: additional tests
      env: NAME=NODE_6
      node_js: 6

    - env: NAME=NODE_8
      node_js: 8

    - env: NAME=NODE_10
      node_js: 10
      script:
        - yarn test:cover
      after_success:
        - .travis/codecoverage.sh

    - env: EMBER_CLI_ENABLE_ALL_EXPERIMENTS=true
    - env: EMBER_CLI_PACKAGER=true
    - env: EMBER_CLI_MODULE_UNIFICATION=true
    - env: EMBER_CLI_DELAYED_TRANSPILATION=true
    - env: EMBER_CLI_BROCCOLI_2=true
    - env:
      - EMBER_CLI_SYSTEM_TEMP=true
      - EMBER_CLI_BROCCOLI_2=true

    - stage: deploy
      script: ./.travis/deploy.sh

before_install:
  # prevent the npm loading indicator
  - npm config --global set spin false

  # travis currently includes yarn v0.17.8 (20170705)
  # this isn't new enough for our use of --non-interactive
  - curl -o- -L https://yarnpkg.com/install.sh | bash
  - export PATH=$HOME/.yarn/bin:$PATH

script:
  - yarn test:all
{'fraction_non_alphanumeric': 0.10376492194674013, 'fraction_numerical': 0.018365472910927456, 'mean_word_length': 2.2778335005015045, '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': '4060702', 'n_tokens_mistral': 1291, 'n_tokens_neox': 1206, 'n_words': 324}