<commit_before>version: '{build}'

skip_tags: true

skip_commits:
  message: /\[ci skip\]/
clone_depth: 10

environment:
  TERM: dumb
  matrix:
    - JAVA_HOME: C:\Program Files\Java\jdk1.8.0
    - JAVA_HOME: C:\Program Files\Java\jdk9
    - JAVA_HOME: C:\Program Files\Java\jdk10

init:
  - git config --global --unset core.autocrlf

install:
  - SET PATH=%JAVA_HOME%\bin;%PATH%
  # remove Ruby entry (C:\Ruby193\bin;) from PATH
  - SET PATH=%PATH:C:\Ruby193\bin;=%
  - echo %PATH%
  - java -version
  - gradlew.bat --version

build_script:
  - gradlew build -PwarningsAsErrors=true
  - gradlew installShadowDist
  - detekt-cli\build\install\detekt-cli-shadow\bin\detekt-cli --help

test_script:
  - detekt-cli\build\install\detekt-cli-shadow\bin\detekt-cli -i . --baseline reports\baseline.xml -f ".*/resources/.*,.*/build/.*" -c detekt-cli\src\main\resources\default-detekt-config.yml,reports\failfast.yml
  - gradlew verifyGeneratorOutput

on_finish:
  - ps: |
      $wc = New-Object 'System.Net.WebClient'
      $url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
      $files = Get-ChildItem -Include 'TEST-*.xml' -Recurse
      $filesCount = $files.Count
      echo "Uploading JUnit test results to AppVeyor ($filesCount files)..."
      for ($I = 1; $I -le ($filesCount - 1); $I++) {
        $file = $files.Get($I)
        $wc.UploadFile($url, (Resolve-Path $file))
      }
      echo "JUnit test results uploaded correctly"<commit_msg>AppVeyor: Save Gradle cache to the AppVeyor build cache (#1218)<commit_after>version: '{build}'

skip_tags: true

skip_commits:
  message: /\[ci skip\]/
clone_depth: 10

environment:
  TERM: dumb
  matrix:
    - JAVA_HOME: C:\Program Files\Java\jdk1.8.0
    - JAVA_HOME: C:\Program Files\Java\jdk9
    - JAVA_HOME: C:\Program Files\Java\jdk10

init:
  - git config --global --unset core.autocrlf
  - set GRADLE_OPTS=-Dorg.gradle.daemon=false

install:
  - SET PATH=%JAVA_HOME%\bin;%PATH%
  # remove Ruby entry (C:\Ruby193\bin;) from PATH
  - SET PATH=%PATH:C:\Ruby193\bin;=%
  - echo %PATH%
  - java -version
  - gradlew.bat --version

build_script:
  - gradlew build -PwarningsAsErrors=true
  - gradlew installShadowDist
  - detekt-cli\build\install\detekt-cli-shadow\bin\detekt-cli --help

test_script:
  - detekt-cli\build\install\detekt-cli-shadow\bin\detekt-cli -i . --baseline reports\baseline.xml -f ".*/resources/.*,.*/build/.*" -c detekt-cli\src\main\resources\default-detekt-config.yml,reports\failfast.yml
  - gradlew verifyGeneratorOutput

after_test:
  - ps: del C:\Users\appveyor\.gradle\caches\modules-2\modules-2.lock
  - ps: del -Recurse C:\Users\appveyor\.gradle\caches\*\plugin-resolution

cache:
  - C:\Users\appveyor\.gradle\wrapper
  - C:\Users\appveyor\.gradle\caches

on_finish:
  - ps: |
      $wc = New-Object 'System.Net.WebClient'
      $url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
      $files = Get-ChildItem -Include 'TEST-*.xml' -Recurse
      $filesCount = $files.Count
      echo "Uploading JUnit test results to AppVeyor ($filesCount files)..."
      for ($I = 1; $I -le ($filesCount - 1); $I++) {
        $file = $files.Get($I)
        $wc.UploadFile($url, (Resolve-Path $file))
      }
      echo "JUnit test results uploaded correctly"
{'fraction_non_alphanumeric': 0.15802318486882244, 'fraction_numerical': 0.011592434411226357, 'mean_word_length': 3.063197026022305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6289027', 'n_tokens_mistral': 1284, 'n_tokens_neox': 1222, 'n_words': 235}