<commit_before>version: "{build}"
clone_depth: 10

platform:
  - x86
  - x64

environment:
  matrix:
    - GENERATOR_NAME: "Visual Studio 12 2013"
    - GENERATOR_NAME: "Visual Studio 14 2015"

notifications:
  - provider: Email
    to:
      - <EMAIL>
    on_build_status_changed: true

init:
  - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

install:
  - tzutil /s "Tokyo Standard Time"
  # - choco install -y imdisk-toolkit
  # - mkdir tmp
  # - imdisk -a -t file -m tmp -o awe -s 1G -p "/fs:ntfs /q /y"

build_script:
  - ps: |
      if ($Env:PLATFORM -eq "x86")
      {
        $Env:PATH = "C:\Ruby22\bin;$Env:PATH"
        $Env:CMAKE_GENERATOR_NAME = "$Env:GENERATOR_NAME"
      }
      else
      {
        $Env:PATH = "C:\Ruby22-x64\bin;$Env:PATH"
        $Env:CMAKE_GENERATOR_NAME = "$Env:GENERATOR_NAME Win64"
      }
  - git submodule update --init
  - cd vendor
  - ruby download_mecab.rb
  - ruby download_message_pack.rb
  - ruby download_lz4.rb
  - cd ..
  - cmake . -G "%CMAKE_GENERATOR_NAME%"
      -DCMAKE_INSTALL_PREFIX=c:\groonga
      -DGRN_WITH_BUNDLED_MECAB=yes
      -DGRN_WITH_BUNDLED_MESSAGE_PACK=yes
      # -DGRN_WITH_BUNDLED_LZ4=yes
  - cmake --build . --config Debug
  - cmake --build . --config Debug --target Install

before_test:
  - git clone --depth 1
      https://github.com/groonga/grntest.git
      test\command\grntest
  - cd test\command\grntest
  - bundle install --binstubs=..\bin
  - cd ..\..\..
test_script:
  - ruby test\command\bin\grntest
     --groonga c:\groonga\bin\groonga.exe
     --base-directory test\command
     --reporter mark
     --n-workers 1
     --timeout 60<commit_msg>appveyor: reduce download size<commit_after>version: "{build}"
clone_depth: 10

platform:
  - x86
  - x64

environment:
  matrix:
    - GENERATOR_NAME: "Visual Studio 12 2013"
    - GENERATOR_NAME: "Visual Studio 14 2015"

notifications:
  - provider: Email
    to:
      - <EMAIL>
    on_build_status_changed: true

init:
  - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

install:
  - tzutil /s "Tokyo Standard Time"
  # - choco install -y imdisk-toolkit
  # - mkdir tmp
  # - imdisk -a -t file -m tmp -o awe -s 1G -p "/fs:ntfs /q /y"

build_script:
  - ps: |
      if ($Env:PLATFORM -eq "x86")
      {
        $Env:PATH = "C:\Ruby22\bin;$Env:PATH"
        $Env:CMAKE_GENERATOR_NAME = "$Env:GENERATOR_NAME"
      }
      else
      {
        $Env:PATH = "C:\Ruby22-x64\bin;$Env:PATH"
        $Env:CMAKE_GENERATOR_NAME = "$Env:GENERATOR_NAME Win64"
      }
  - git submodule update --init --depth 1
  - cd vendor
  - ruby download_mecab.rb
  - ruby download_message_pack.rb
  - ruby download_lz4.rb
  - cd ..
  - cmake . -G "%CMAKE_GENERATOR_NAME%"
      -DCMAKE_INSTALL_PREFIX=c:\groonga
      -DGRN_WITH_BUNDLED_MECAB=yes
      -DGRN_WITH_BUNDLED_MESSAGE_PACK=yes
      # -DGRN_WITH_BUNDLED_LZ4=yes
  - cmake --build . --config Debug
  - cmake --build . --config Debug --target Install

before_test:
  - git clone --depth 1
      https://github.com/groonga/grntest.git
      test\command\grntest
  - cd test\command\grntest
  - bundle install --binstubs=..\bin
  - cd ..\..\..
test_script:
  - ruby test\command\bin\grntest
     --groonga c:\groonga\bin\groonga.exe
     --base-directory test\command
     --reporter mark
     --n-workers 1
     --timeout 60
{'fraction_non_alphanumeric': 0.13535353535353536, 'fraction_numerical': 0.02106782106782107, 'mean_word_length': 2.391389432485323, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3567114', 'n_tokens_mistral': 1411, 'n_tokens_neox': 1319, 'n_words': 262}