Skip to content

Commit

Permalink
Use Travis to test on Windows (#7)
Browse files Browse the repository at this point in the history
* Use Travis to test on Windows

* Require Node.js 6
  • Loading branch information
1000ch authored Jan 14, 2019
1 parent 697254d commit 5c96ae5
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 31 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
sudo: false
os:
- linux
- windows
language: node_js
node_js:
- '10'
- '8'
- '6'
- '4'
20 changes: 0 additions & 20 deletions appveyor.yml

This file was deleted.

6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ module.exports = opts => buf => {
input: buf,
bin: zopfli,
args
}).catch(err => {
err.message = err.stderr || err.message;
throw err;
}).catch(error => {
error.message = error.stderr || error.message;
throw error;
});
};
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
],
"engines": {
"node": ">=4"
"node": ">=6"
},
"scripts": {
"test": "xo && ava"
Expand All @@ -43,11 +43,11 @@
"dependencies": {
"exec-buffer": "^3.0.0",
"is-png": "^1.0.0",
"zopflipng-bin": "^4.0.0"
"zopflipng-bin": "^5.0.0"
},
"devDependencies": {
"ava": "*",
"pify": "^2.3.0",
"xo": "*"
"ava": "^1.0.1",
"pify": "^4.0.1",
"xo": "^0.23.0"
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# imagemin-zopfli [![Build Status](https://travis-ci.org/imagemin/imagemin-zopfli.svg?branch=master)](https://travis-ci.org/imagemin/imagemin-zopfli) [![Build status](https://ci.appveyor.com/api/projects/status/au86jlv1nyfcv40h?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/imagemin-zopfli)
# imagemin-zopfli [![Build Status](https://travis-ci.org/imagemin/imagemin-zopfli.svg?branch=master)](https://travis-ci.org/imagemin/imagemin-zopfli)

> [Zopfli](https://en.wikipedia.org/wiki/Zopfli) imagemin plugin
Expand Down

0 comments on commit 5c96ae5

Please sign in to comment.