<commit_before>language: cpp

git:
  depth: 1000

matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required
    - os: osx
      osx_image: xcode8.1
  fast_finish: true

addons:
  artifacts:
    paths:
      - $(ls powershell*{deb,pkg,AppImage,gz} | tr "\n" ":")
      - pester-tests.xml

install:
  # Default 2.0.0 Ruby is buggy
  # Default bundler version is buggy
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      rvm install ruby-2.3.3;
      rvm --default use 2.3.3;
    fi
  - pushd tools
  - ./install-powershell.sh
  - popd
  # spellcheck
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      nvm install 6.4.0 &&
      npm install -g markdown-spellcheck@0.11.0;
    fi
  - ulimit -n 4096
  - pwsh -File tools/travis.ps1 -Stage Bootstrap

script:
  - pwsh -File tools/travis.ps1
  # spellcheck
  # Ignore publish folders because they have 3rd party files
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      mdspell '**/*.md' '!**/publish/**/*.md' --ignore-numbers --ignore-acronyms --report;
    fi

after_failure:
  - pwsh -File tools/travis.ps1 -Stage Failure

after_success:
  - pwsh -File tools/travis.ps1 -Stage Success<commit_msg>Exclude markdown files from 'Pester' folder (#5636)<commit_after>language: cpp

git:
  depth: 1000

matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required
    - os: osx
      osx_image: xcode8.1
  fast_finish: true

addons:
  artifacts:
    paths:
      - $(ls powershell*{deb,pkg,AppImage,gz} | tr "\n" ":")
      - pester-tests.xml

install:
  # Default 2.0.0 Ruby is buggy
  # Default bundler version is buggy
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      rvm install ruby-2.3.3;
      rvm --default use 2.3.3;
    fi
  - pushd tools
  - ./install-powershell.sh
  - popd
  # spellcheck
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      nvm install 6.4.0 &&
      npm install -g markdown-spellcheck@0.11.0;
    fi
  - ulimit -n 4096
  - pwsh -File tools/travis.ps1 -Stage Bootstrap

script:
  - pwsh -File tools/travis.ps1
  # spellcheck
  # Ignore 'Pester' folder because it's third party
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      mdspell '**/*.md' '!**/Pester/**/*.md' --ignore-numbers --ignore-acronyms --report;
    fi

after_failure:
  - pwsh -File tools/travis.ps1 -Stage Failure

after_success:
  - pwsh -File tools/travis.ps1 -Stage Success
{'fraction_non_alphanumeric': 0.1434634974533107, 'fraction_numerical': 0.027589134125636672, 'mean_word_length': 2.4208998548621192, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3767864', 'n_tokens_mistral': 955, 'n_tokens_neox': 921, 'n_words': 227}