Sha256: 073f8ca3d995dd323c687d447531c1e211abe7e11ec5ba07171da0f57eec634c
Contents?: true
Size: 1.62 KB
Versions: 1
Compression:
Stored size: 1.62 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 -- advpng.exe gifsicle.exe jhead.exe jpeg-recompress.exe jpegoptim.exe jpegtran.exe optipng.exe pngcrush.exe pngout.exe pngquant.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
image_optim-0.24.2 | .appveyor.yml |