Sha256: a17f367ad80f96a14cd3d0547a3870fe3369019a2dbb0f5c92dbbe87a6ec8f75

Contents?: true

Size: 1.49 KB

Versions: 8

Compression:

Stored size: 1.49 KB

Contents

version: '{build}-{branch}'
install:
  - mkdir tmp\bin || exit 0
  - set PATH=%cd%\tmp\bin;%PATH%
  - ruby --version
  - bundle package --all

  - ps: git --work-tree=tmp\bin checkout origin/windows-binaries -- '*.exe'

  - ps: | # svgo
      npm install -g svgo

  - ps: | # ImageMagick
      if ((-not (test-path tmp/bin/convert.exe)) -or (-not (test-path tmp/bin/compare.exe)) -or (-not (test-path tmp/bin/magic.xml))) {
        choco install -y imagemagick.tool
        cp C:\ProgramData\chocolatey\lib\imagemagick.tool\tools\convert.exe tmp\bin
        cp C:\ProgramData\chocolatey\lib\imagemagick.tool\tools\compare.exe tmp\bin
        cp C:\ProgramData\chocolatey\lib\imagemagick.tool\tools\magic.xml tmp\bin
      }

  - bundle exec image_optim --info --allow-lossy --no-pack
cache:
  - tmp/bin
build: off
test_script:
  - ps: |
      $path = $env:Path
      $rubypaths = ls -Path C:\Ruby*\bin
      foreach ($rubypath in $rubypaths[-2, -1]) {
        echo "################################################################################"
        $env:Path = "$rubypath;" + $path
        ruby --version
        bundle package --all
        bundle install --local -j4
        bundle exec rspec
        if ($LASTEXITCODE -gt 0) {
          exit 1
        }
        rm tmp/optimize_test -recurse -force
        cp spec/images tmp/optimize_test -recurse -force
        bundle exec image_optim --allow-lossy -r tmp/optimize_test
        if ($LASTEXITCODE -gt 0) {
          exit 1
        }
      }
      $env:Path = $path

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
discourse_image_optim-0.26.2 .appveyor.yml
discourse_image_optim-0.26.1 .appveyor.yml
image_optim-0.26.1 .appveyor.yml
image_optim-0.26.0 .appveyor.yml
image_optim-0.25.0 .appveyor.yml
discourse_image_optim-0.24.5 .appveyor.yml
image_optim-0.24.3 .appveyor.yml
discourse_image_optim-0.24.4 .appveyor.yml