diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cd1de5dd1ba..00000000000 --- a/.travis.yml +++ /dev/null @@ -1,75 +0,0 @@ -language: cpp - -git: - depth: 1000 - -matrix: - include: - - os: linux - dist: trusty - sudo: required - env: TRAVIS_CI_CACHE_NAME=linux - - os: osx - osx_image: xcode9.4 - env: TRAVIS_CI_CACHE_NAME=macOS - fast_finish: true - -addons: - artifacts: - paths: - - $(ls powershell*{deb,pkg,AppImage,gz} | tr "\n" ":") - - TestResultsSudo.xml - - TestResultsNoSudo.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 - # Ensure that libcurl+openssl is used on macOS for greater feature support. - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - export DYLD_LIBRARY_PATH=/usr/local/opt/curl/lib:/usr/local/opt/openssl/lib:${DYLD_LIBRARY_PATH}; - 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 --en-us; - fi - -after_failure: - - pwsh -File tools/travis.ps1 -Stage Failure - -after_success: - - pwsh -File tools/travis.ps1 -Stage Success - -# travis-ci will quit using the cache if an enviroment variable changes. -# CACHE_VERSION is not used for anything other than invalidating the cache. -# DOTNET_SKIP_FIRST_TIME_EXPERIENCE is to skip the dotnet-cli initialization, -# which is expensive and unneeded for build agents. -env: - global: - - CACHE_VERSION=netcoreapp.2.1-sdk.2.1.401 - - POWERSHELL_TELEMETRY_OPTOUT=1 - - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 - -# timeout uploading cache after 6 minutes (360 seconds) -cache: - timeout: 360 - directories: - - $HOME/.nuget - - $HOME/Library/Caches/Homebrew diff --git a/.vsts-ci/linux.yml b/.vsts-ci/linux.yml index 4d1131c9968..977bd906b31 100644 --- a/.vsts-ci/linux.yml +++ b/.vsts-ci/linux.yml @@ -4,8 +4,6 @@ variables: POWERSHELL_TELEMETRY_OPTOUT: 1 # Avoid expensive initialization of dotnet cli, see: http://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 - # Enable VSTS debug mode until stabilitized - system.debug: 'true' resources: - repo: self diff --git a/.vsts-ci/spelling.yml b/.vsts-ci/spelling.yml new file mode 100644 index 00000000000..2c7b6047abf --- /dev/null +++ b/.vsts-ci/spelling.yml @@ -0,0 +1,29 @@ +name: PR-$(System.PullRequest.PullRequestNumber)-$(Date:yyyyMMdd)$(Rev:.rr) + +resources: +- repo: self + clean: true +phases: +- phase: Linux_CI + + queue: + name: Hosted Ubuntu 1604 + steps: + - powershell: | + Get-ChildItem -Path env: + displayName: Capture environment + condition: succeededOrFailed() + + - bash: | + sudo npm install -g markdown-spellcheck@0.11.0 + displayName: Install mdspell + condition: succeededOrFailed() + + - powershell: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhmmss"))" + displayName: Set Build Name for Non-PR + condition: ne(variables['Build.Reason'], 'PullRequest') + + - bash: | + mdspell '**/*.md' '!**/Pester/**/*.md' --ignore-numbers --ignore-acronyms --report --en-us; + displayName: Test Spelling + condition: succeededOrFailed()