From 964ba5dc947d5b73384948d947feb77b72a77ef7 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Tue, 20 Jan 2015 18:46:19 -0500 Subject: [PATCH] build: add AppVeyor --- .travis.yml | 2 +- README.md | 9 ++++++--- appveyor.yml | 18 ++++++++++++++++++ package.json | 4 ++-- 4 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 appveyor.yml 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 7c1037b..8287eb6 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] @@ -155,9 +156,11 @@ app.listen(3000) [npm-image]: https://img.shields.io/npm/v/serve-static.svg?style=flat [npm-url]: https://npmjs.org/package/serve-static -[travis-image]: https://img.shields.io/travis/expressjs/serve-static.svg?style=flat +[travis-image]: https://img.shields.io/travis/expressjs/serve-static/master.svg?label=linux&style=flat [travis-url]: https://travis-ci.org/expressjs/serve-static -[coveralls-image]: https://img.shields.io/coveralls/expressjs/serve-static.svg?style=flat +[appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/serve-static/master.svg?label=windows&style=flat +[appveyor-url]: https://ci.appveyor.com/project/dougwilson/serve-static +[coveralls-image]: https://img.shields.io/coveralls/expressjs/serve-static/master.svg?style=flat [coveralls-url]: https://coveralls.io/r/expressjs/serve-static [downloads-image]: https://img.shields.io/npm/dm/serve-static.svg?style=flat [downloads-url]: https://npmjs.org/package/serve-static 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 c1610e6..1c393b9 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,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/" } }