Skip to content

Commit 964ba5d

Browse files
committed
build: add AppVeyor
1 parent 4d027d6 commit 964ba5d

File tree

4 files changed

+27
-6
lines changed

4 files changed

+27
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ matrix:
77
allow_failures:
88
- node_js: "0.11"
99
fast_finish: true
10-
script: "npm run-script test-travis"
10+
script: "npm run-script test-ci"
1111
after_script: "npm install [email protected] && cat ./coverage/lcov.info | coveralls"

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
[![NPM Version][npm-image]][npm-url]
44
[![NPM Downloads][downloads-image]][downloads-url]
5-
[![Build Status][travis-image]][travis-url]
5+
[![Linux Build][travis-image]][travis-url]
6+
[![Windows Build][appveyor-image]][appveyor-url]
67
[![Test Coverage][coveralls-image]][coveralls-url]
78
[![Gratipay][gratipay-image]][gratipay-url]
89

@@ -155,9 +156,11 @@ app.listen(3000)
155156

156157
[npm-image]: https://img.shields.io/npm/v/serve-static.svg?style=flat
157158
[npm-url]: https://npmjs.org/package/serve-static
158-
[travis-image]: https://img.shields.io/travis/expressjs/serve-static.svg?style=flat
159+
[travis-image]: https://img.shields.io/travis/expressjs/serve-static/master.svg?label=linux&style=flat
159160
[travis-url]: https://travis-ci.org/expressjs/serve-static
160-
[coveralls-image]: https://img.shields.io/coveralls/expressjs/serve-static.svg?style=flat
161+
[appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/serve-static/master.svg?label=windows&style=flat
162+
[appveyor-url]: https://ci.appveyor.com/project/dougwilson/serve-static
163+
[coveralls-image]: https://img.shields.io/coveralls/expressjs/serve-static/master.svg?style=flat
161164
[coveralls-url]: https://coveralls.io/r/expressjs/serve-static
162165
[downloads-image]: https://img.shields.io/npm/dm/serve-static.svg?style=flat
163166
[downloads-url]: https://npmjs.org/package/serve-static

appveyor.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
environment:
2+
matrix:
3+
- nodejs_version: "0.8"
4+
- nodejs_version: "0.10"
5+
- nodejs_version: "0.11"
6+
matrix:
7+
allow_failures:
8+
- nodejs_version: "0.11"
9+
fast_finish: true
10+
install:
11+
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
12+
- npm install
13+
build: off
14+
test_script:
15+
- node --version
16+
- npm --version
17+
- npm run test-ci
18+
version: "{build}"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"scripts": {
2828
"test": "mocha --reporter spec --bail --check-leaks test/",
29-
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
30-
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
29+
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
30+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"
3131
}
3232
}

0 commit comments

Comments
 (0)