From 063fac633ca4faacb057822fa73df873d3992c80 Mon Sep 17 00:00:00 2001 From: Paul Loyd Date: Sun, 5 Nov 2017 00:22:56 +0300 Subject: [PATCH] Add appveyor and badges --- .travis.yml | 4 +++- README.md | 9 ++++++--- appveyor.yml | 17 +++++++++++++++++ package.json | 2 +- 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml index 1f81aa5..1355cce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ language: node_js node_js: - - "lts/*" + - "9" + - "8" + - "6" cache: directories: - "node_modules" diff --git a/README.md b/README.md index 5860d59..91608b8 100644 --- a/README.md +++ b/README.md @@ -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' ] }, + ] }, ], ] ``` diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..948ff76 --- /dev/null +++ b/appveyor.yml @@ -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 diff --git a/package.json b/package.json index b85c95f..26eb918 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,6 @@ "jsondiffpatch": "^0.2.5" }, "scripts": { - "test": "tests/do" + "test": "node tests/do" } }