diff --git a/.gitignore b/.gitignore index a62b65f..21c66bd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ node_modules lib dist +coverage *.log diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..bea1fc0 --- /dev/null +++ b/.npmignore @@ -0,0 +1,7 @@ +node_modules + +coverage + +*.log + +test diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e1d6320 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +sudo: false +language: node_js +node_js: + - 4 + - 5 + +# Make sure we have new NPM. +before_install: + - npm install -g npm + +script: + - npm run lint + - npm test + - npm run coverage + +addons: + firefox: 'latest' + +before_script: + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start + +after_success: + - npm run coverage-publish diff --git a/README.md b/README.md index 3d95760..7f9664c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ js-mafmt ======== -[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) - -> Javascript implementation of multiaddr validation +[![](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) +[![Coverage Status](https://coveralls.io/repos/github/whyrusleeping/js-mafmt/badge.svg?branch=master)](https://coveralls.io/github/whyrusleeping/js-mafmt?branch=master) +[![Travis CI](https://travis-ci.org/whyrusleeping/js-mafmt.svg?branch=master)](https://travis-ci.org/whyrusleeping/js-mafmt) +[![Circle CI](https://circleci.com/gh/whyrusleeping/js-mafmt.svg?style=svg)](https://circleci.com/gh/whyrusleeping/js-mafmt) +[![Dependency Status](https://david-dm.org/whyrusleeping/js-mafmt.svg?style=flat-square)](https://david-dm.org/whyrusleeping/js-mafmt) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) +> Javascript implementation of multiaddr validation diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..434211a --- /dev/null +++ b/circle.yml @@ -0,0 +1,12 @@ +machine: + node: + version: stable + +dependencies: + pre: + - google-chrome --version + - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - + - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' + - sudo apt-get update + - sudo apt-get --only-upgrade install google-chrome-stable + - google-chrome --version diff --git a/package.json b/package.json index babfa85..1257e5d 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,14 @@ "main": "lib/index.js", "jsnext:main": "src/index.js", "scripts": { - "lint": "dignified-lint", - "build": "dignified-build", - "test": "dignified-test", - "test:node": "dignified-test node", - "test:browser": "dignified-test browser", - "release": "dignified-release" + "lint": "aegir-lint", + "build": "aegir-build", + "test": "aegir-test", + "test:node": "aegir-test node", + "test:browser": "aegir-test browser", + "release": "aegir-release", + "coverage": "aegir-coverage", + "coverage-publish": "aegir-coverage publish" }, "pre-commit": [ "lint", @@ -30,8 +32,8 @@ }, "homepage": "https://github.com/whyrusleeping/js-mafmt#readme", "devDependencies": { + "aegir": "^2.1.1", "chai": "^3.5.0", - "dignified.js": "github:dignifiedquire/dignified.js", "pre-commit": "^1.1.2" }, "dependencies": {