Skip to content

Commit 690d917

Browse files
committed
appveyor: test only using latest two rubies and try to optimize images with both of them
File.unlink on ruby 1.9 sometimes fails with permission denied
1 parent 3b5c4d1 commit 690d917

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.appveyor.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ test_script:
8181
- ps: |
8282
$path = $env:Path
8383
$rubypaths = ls -Path C:\Ruby*\bin
84-
foreach ($rubypath in $rubypaths[0, -2, -1]) {
84+
foreach ($rubypath in $rubypaths[-2, -1]) {
8585
echo "################################################################################"
8686
$env:Path = "$rubypath;" + $path
8787
ruby --version
@@ -91,6 +91,11 @@ test_script:
9191
if ($LASTEXITCODE -gt 0) {
9292
exit 1
9393
}
94+
rm tmp/optimize_test -recurse -force
95+
cp spec/images tmp/optimize_test -recurse -force
96+
bundle exec image_optim --allow-lossy -r tmp/optimize_test
97+
if ($LASTEXITCODE -gt 0) {
98+
exit 1
99+
}
94100
}
95101
$env:Path = $path
96-
- bundle exec image_optim --allow-lossy -r spec/images

0 commit comments

Comments
 (0)