Skip to content

Commit

Permalink
appveyor: test only using latest two rubies and try to optimize image…
Browse files Browse the repository at this point in the history
…s with both of them

File.unlink on ruby 1.9 sometimes fails with permission denied
  • Loading branch information
toy committed Jul 27, 2016
1 parent 3b5c4d1 commit 690d917
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ test_script:
- ps: |
$path = $env:Path
$rubypaths = ls -Path C:\Ruby*\bin
foreach ($rubypath in $rubypaths[0, -2, -1]) {
foreach ($rubypath in $rubypaths[-2, -1]) {
echo "################################################################################"
$env:Path = "$rubypath;" + $path
ruby --version
Expand All @@ -91,6 +91,11 @@ test_script:
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
- bundle exec image_optim --allow-lossy -r spec/images

0 comments on commit 690d917

Please sign in to comment.