Sha256: 88a0ae7acf3a9ee3860dc8301189bbaf7cd65d87ae38aff4e1b915aad9185c59

Contents?: true

Size: 1.67 KB

Versions: 5

Compression:

Stored size: 1.67 KB

Contents

version: '{build}'

environment:
  matrix:
    - RUBY_VERSION: 25
    - RUBY_VERSION: 24
    - RUBY_VERSION: 23
    - RUBY_VERSION: _trunk

matrix:
  allow_failures:
    - RUBY_VERSION: _trunk

install:
  - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
  - gem install bundler -v 2.0.1
  - npm install -g puppeteer
  - npm install
  # install libxml2 & libxslt
  - ps: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  - refreshenv
  - cinst --x86 xsltproc
  - set XSLT_PROC=%ChocolateyInstall%\lib\xsltproc\dist
  # RUBY_DLL_PATH looks broken in ruby23
  - if "%RUBY_VERSION%" == "23" (
      XCOPY /Y %XSLT_PROC%\bin\lib*.dll C:\Ruby%RUBY_VERSION%\bin\*
    ) else (
      XCOPY /Y %XSLT_PROC%\bin\libxml2*.dll %XSLT_PROC%\bin\libxml2.dll* &
      XCOPY /Y %XSLT_PROC%\bin\libxslt*.dll %XSLT_PROC%\bin\libxslt.dll* &
      XCOPY /Y %XSLT_PROC%\bin\libexslt*.dll %XSLT_PROC%\bin\libexslt.dll*
    )
  - echo @ECHO OFF > %ChocolateyInstall%\bin\xml2-config.bat
  - echo @ECHO OFF > %ChocolateyInstall%\bin\xslt-config.bat

build_script:
  # RUBY_DLL_PATH looks broken in ruby23
  - if NOT "%RUBY_VERSION%" == "23" setx /M RUBY_DLL_PATH "%ChocolateyInstall%\lib\xsltproc\dist\bin;%RUBY_DLL_PATH%"
  - refreshenv
  - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
  - set XSLT_PROC=%ChocolateyInstall%\lib\xsltproc\dist
  - bundle config build.ruby-xslt --with-xml2-include=%XSLT_PROC%\include\libxml2 --with-xslt-include=%XSLT_PROC%\include --with-xml2-lib=%XSLT_PROC%\lib --with-xslt-lib=%XSLT_PROC%\lib
  - bundle update
  - bundle install

before_test:
  - ruby -v
  - gem -v
  - bundle -v

test_script:
  - bundle exec rake

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metanorma-0.3.10 appveyor.yml
metanorma-0.3.9 appveyor.yml
metanorma-0.3.8 appveyor.yml
metanorma-0.3.7 appveyor.yml
metanorma-0.3.6 appveyor.yml