diff --git a/.travis.yml b/.travis.yml index 1ff243c..c4ebdf4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,5 +7,5 @@ matrix: allow_failures: - node_js: "0.11" fast_finish: true -script: "npm run-script test-travis" +script: "npm run-script test-ci" after_script: "npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls" diff --git a/README.md b/README.md index 66ba6b4..2da8e37 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] -[![Build Status][travis-image]][travis-url] +[![Linux Build][travis-image]][travis-url] +[![Windows Build][appveyor-image]][appveyor-url] [![Test Coverage][coveralls-image]][coveralls-url] [![Gratipay][gratipay-image]][gratipay-url] @@ -117,9 +118,11 @@ are created by/copyright of [FAMFAMFAM](http://www.famfamfam.com/). [npm-image]: https://img.shields.io/npm/v/serve-index.svg?style=flat [npm-url]: https://npmjs.org/package/serve-index -[travis-image]: https://img.shields.io/travis/expressjs/serve-index.svg?style=flat +[travis-image]: https://img.shields.io/travis/expressjs/serve-index/master.svg?label=linux&style=flat [travis-url]: https://travis-ci.org/expressjs/serve-index -[coveralls-image]: https://img.shields.io/coveralls/expressjs/serve-index.svg?style=flat +[appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/serve-index/master.svg?label=windows&style=flat +[appveyor-url]: https://ci.appveyor.com/project/dougwilson/serve-index +[coveralls-image]: https://img.shields.io/coveralls/expressjs/serve-index/master.svg?style=flat [coveralls-url]: https://coveralls.io/r/expressjs/serve-index?branch=master [downloads-image]: https://img.shields.io/npm/dm/serve-index.svg?style=flat [downloads-url]: https://npmjs.org/package/serve-index diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..c813188 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,18 @@ +environment: + matrix: + - nodejs_version: "0.8" + - nodejs_version: "0.10" + - nodejs_version: "0.11" +matrix: + allow_failures: + - nodejs_version: "0.11" + fast_finish: true +install: + - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) + - npm install +build: off +test_script: + - node --version + - npm --version + - npm run test-ci +version: "{build}" diff --git a/package.json b/package.json index 13d983f..8bcc39a 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ }, "scripts": { "test": "mocha --reporter spec --bail --check-leaks test/", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", - "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" + "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/", + "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/" } }