Skip to content

Commit

Permalink
build: add AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Apr 7, 2015
1 parent ec0a6a6 commit d3f7f97
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -7,5 +7,5 @@ node_js:
- "1.0"
- "1.6"
sudo: false
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"
7 changes: 5 additions & 2 deletions Readme.md
Expand Up @@ -3,7 +3,8 @@
[![NPM Version][npm-version-image]][npm-url]
[![NPM Downloads][npm-downloads-image]][npm-url]
[![Node.js Version][node-image]][node-url]
[![Build Status][travis-image]][travis-url]
[![Linux Build][travis-image]][travis-url]
[![Windows Build][appveyor-image]][appveyor-url]
[![Coverage Status][coveralls-image]][coveralls-url]
[![Gratipay][gratipay-image]][gratipay-url]

Expand Down Expand Up @@ -261,8 +262,10 @@ deprecate.property(exports, 'oldprop', 'oldprop >= 0.10')
[npm-version-image]: https://img.shields.io/npm/v/depd.svg
[npm-downloads-image]: https://img.shields.io/npm/dm/depd.svg
[npm-url]: https://npmjs.org/package/depd
[travis-image]: https://img.shields.io/travis/dougwilson/nodejs-depd/master.svg
[travis-image]: https://img.shields.io/travis/dougwilson/nodejs-depd/master.svg?label=linux
[travis-url]: https://travis-ci.org/dougwilson/nodejs-depd
[appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/nodejs-depd/master.svg?label=windows
[appveyor-url]: https://ci.appveyor.com/project/dougwilson/nodejs-depd
[coveralls-image]: https://img.shields.io/coveralls/dougwilson/nodejs-depd/master.svg
[coveralls-url]: https://coveralls.io/r/dougwilson/nodejs-depd?branch=master
[node-image]: https://img.shields.io/node/v/depd.svg
Expand Down
16 changes: 16 additions & 0 deletions appveyor.yml
@@ -0,0 +1,16 @@
environment:
matrix:
- nodejs_version: "0.8"
- nodejs_version: "0.10"
- nodejs_version: "0.12"
- nodejs_version: "1.0"
- nodejs_version: "1.6"
install:
- ps: Install-Product node $env:nodejs_version
- npm install
build: off
test_script:
- node --version
- npm --version
- npm run test-ci
version: "{build}"
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -28,7 +28,7 @@
"scripts": {
"bench": "node benchmark/index.js",
"test": "mocha --reporter spec --bail test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec test/"
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --no-exit test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/"
}
}
2 changes: 2 additions & 0 deletions test/test.js
Expand Up @@ -327,6 +327,8 @@ describe('deprecate.function(fn, message)', function () {
})

it('should handle rapid calling of deprecated thing', function () {
this.timeout(5000)

function callold() {
for (var i = 0; i < 10000; i++) {
mylib.oldfn()
Expand Down

0 comments on commit d3f7f97

Please sign in to comment.