From a73066b10b0a7c2faa5397434a06de12e3ddb3b5 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Fri, 31 Jul 2015 18:02:38 +0200 Subject: [PATCH] Setup travis --- .travis.yml | 14 ++++++++++++++ README.md | 2 +- package.json | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..f66fe919 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +sudo: false +language: node_js +node_js: + - "iojs" + - "0.12" + - "0.10" + +# Make sure we have new NPM. +before_install: + - npm install -g npm + +script: + - npm run lint + - npm test diff --git a/README.md b/README.md index 2184a79c..33ac9967 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ipfs-swarm Node.js implementation ================================= -[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) +[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) [![Build Status](https://img.shields.io/travis/diasdavid/node-ipfs-swarm/master.svg?style=flat-square)](https://travis-ci.org/diasdavid/node-ipfs-swarm) > IPFS swarm implementation in Node.js diff --git a/package.json b/package.json index b255ff50..07a0fc1d 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "test": "./node_modules/.bin/lab tests/*-test.js", "coverage": "./node_modules/.bin/lab -t 100 tests/*-test.js", "codestyle": "./node_modules/.bin/standard --format", - "lint": "jshint .", + "lint": "./node_modules/.bin/standard", "validate": "npm ls" }, "repository": {