Add appveyor and badges

master
Paul Loyd 2017-11-05 00:22:56 +03:00
parent c15e6c7b79
commit 063fac633c
4 changed files with 27 additions and 5 deletions

View File

@ -1,6 +1,8 @@
language: node_js
node_js:
- "lts/*"
- "9"
- "8"
- "6"
cache:
directories:
- "node_modules"

View File

@ -1,6 +1,9 @@
# flow2avro
[![Build Status](https://travis-ci.org/loyd/flow2avro.svg?branch=master)](https://travis-ci.org/loyd/flow2avro)
[![Version npm](https://img.shields.io/npm/v/flow2avro.svg)](https://www.npmjs.com/package/flow2avro)
[![Linux Build](https://travis-ci.org/loyd/flow2avro.svg?branch=master)](https://travis-ci.org/loyd/flow2avro)
[![Windows Build](https://ci.appveyor.com/api/projects/status/github/loyd/flow2avro?branch=master&svg=true)](https://ci.appveyor.com/project/loyd/flow2avro)
[![Coverage Status](https://coveralls.io/repos/github/loyd/flow2avro/badge.svg?branch=master)](https://coveralls.io/r/loyd/flow2avro?branch=master)
## Example
@ -30,8 +33,8 @@ Output:
{ name: 'baz', type: { type: 'enum', symbols: [ 'one', 'two' ] } },
{ name: 'mix', type: [
'double',
{ type: 'enum', symbols: [ 'one', 'two' ] }
] }
{ type: 'enum', symbols: [ 'one', 'two' ] },
] },
],
]
```

17
appveyor.yml Normal file
View File

@ -0,0 +1,17 @@
environment:
matrix:
- nodejs_version: '9'
- nodejs_version: '8'
- nodejs_version: '6'
matrix:
fast_finish: true
install:
- ps: Install-Product node $env:nodejs_version
- npm install
test_script:
- node --version
- npm --version
- npm test
cache:
- node_modules
build: off

View File

@ -30,6 +30,6 @@
"jsondiffpatch": "^0.2.5"
},
"scripts": {
"test": "tests/do"
"test": "node tests/do"
}
}