1version: "{build}" 2clone_depth: 10 3 4environment: 5 matrix: 6 - VS_VERSION: 12 7 ARCH: x86 8 - VS_VERSION: 12 9 ARCH: amd64 10 - VS_VERSION: 14 11 ARCH: x86 12 - VS_VERSION: 14 13 ARCH: amd64 14 15notifications: 16 - provider: Email 17 to: 18 - groonga-commit@lists.osdn.me 19 on_build_status_changed: true 20 21init: 22 - set PATH=C:\Ruby22\bin;%PATH% 23 - set PATH=C:\msys64\usr\bin;%PATH% 24 - call 25 "C:\Program Files (x86)\Microsoft Visual Studio %VS_VERSION%.0\VC\vcvarsall.bat" 26 %ARCH% 27# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) 28 29install: 30 - tzutil /s "Tokyo Standard Time" 31 # - choco install -y imdisk-toolkit 32 # - mkdir tmp 33 # - imdisk -a -t file -m tmp -o awe -s 1G -p "/fs:ntfs /q /y" 34 35build_script: 36 - git submodule update --init 37 - cd vendor 38 - ruby download_mecab.rb 39 - ruby download_message_pack.rb 40 - ruby download_lz4.rb 41 - cd .. 42 - set CMAKE_GENERATOR_NAME=Visual Studio %VS_VERSION% 43 - if "%VS_VERSION%" == "12" 44 set CMAKE_GENERATOR_NAME=%CMAKE_GENERATOR_NAME% 2013 45 - if "%VS_VERSION%" == "14" 46 set CMAKE_GENERATOR_NAME=%CMAKE_GENERATOR_NAME% 2015 47 - if "%ARCH%" == "amd64" 48 set CMAKE_GENERATOR_NAME=%CMAKE_GENERATOR_NAME% Win64 49 - cmake . -G "%CMAKE_GENERATOR_NAME%" 50 -DCMAKE_INSTALL_PREFIX=c:\groonga 51 -DGRN_WITH_MRUBY=yes 52 -DGRN_WITH_BUNDLED_MECAB=yes 53 -DGRN_WITH_BUNDLED_MESSAGE_PACK=yes 54 -DGRN_WITH_BUNDLED_LZ4=yes 55 - cmake --build . --config Debug 56 - cmake --build . --config Debug --target Install 57 58before_test: 59 - git clone --depth 1 60 https://github.com/groonga/grntest.git 61 test\command\grntest 62 - cd test\command\grntest 63 - bundle install --binstubs=..\bin 64 - cd ..\..\.. 65test_script: 66 - ruby test\command\bin\grntest 67 --groonga c:\groonga\bin\groonga.exe 68 --base-directory test\command 69 --reporter mark 70 --n-workers 1 71 --timeout 60 72 test\command\suite 73