Skip to content

Commit 028abf5

Browse files
committed
build: add AppVeyor
1 parent 3882ba4 commit 028abf5

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ node_js:
33
- "0.10"
44
- "0.12"
55
sudo: false
6-
script: "npm run-script test-travis"
6+
script: "npm run-script test-ci"
77
after_script: "npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls"

Readme.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
[![NPM Version][npm-image]][npm-url]
66
[![NPM Downloads][downloads-image]][downloads-url]
7-
[![Build Status][travis-image]][travis-url]
7+
[![Linux Build][travis-image]][travis-url]
8+
[![Windows Build][appveyor-image]][appveyor-url]
89
[![Test Coverage][coveralls-image]][coveralls-url]
910

1011
```js
@@ -125,8 +126,10 @@ The current lead maintainer is [Douglas Christopher Wilson](https://github.com/d
125126
[npm-url]: https://npmjs.org/package/express
126127
[downloads-image]: https://img.shields.io/npm/dm/express.svg
127128
[downloads-url]: https://npmjs.org/package/express
128-
[travis-image]: https://img.shields.io/travis/strongloop/express/master.svg
129+
[travis-image]: https://img.shields.io/travis/strongloop/express/master.svg?label=linux
129130
[travis-url]: https://travis-ci.org/strongloop/express
131+
[appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/express/master.svg?label=windows
132+
[appveyor-url]: https://ci.appveyor.com/project/dougwilson/express
130133
[coveralls-image]: https://img.shields.io/coveralls/strongloop/express/master.svg
131134
[coveralls-url]: https://coveralls.io/r/strongloop/express?branch=master
132135
[gratipay-image-visionmedia]: https://img.shields.io/gratipay/visionmedia.svg

appveyor.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
environment:
2+
matrix:
3+
- nodejs_version: "0.10"
4+
- nodejs_version: "0.12"
5+
install:
6+
- ps: Install-Product node $env:nodejs_version
7+
- npm install
8+
build: off
9+
test_script:
10+
- node --version
11+
- npm --version
12+
- npm run test-ci
13+
version: "{build}"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
],
8484
"scripts": {
8585
"test": "mocha --require test/support/env --reporter spec --bail --check-leaks test/ test/acceptance/",
86+
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/ test/acceptance/",
8687
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks test/ test/acceptance/",
87-
"test-tap": "mocha --require test/support/env --reporter tap --check-leaks test/ test/acceptance/",
88-
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/ test/acceptance/"
88+
"test-tap": "mocha --require test/support/env --reporter tap --check-leaks test/ test/acceptance/"
8989
}
9090
}

0 commit comments

Comments
 (0)