refactor: use aegir

This commit is contained in:
dignifiedquire 2016-04-15 13:20:05 +02:00
parent dee54d3dcc
commit 855a97956d
4 changed files with 30 additions and 16 deletions

View File

@ -1,11 +1,17 @@
sudo: false
language: node_js language: node_js
node_js: node_js:
- 4 - 4
- 5 - 5
# Make sure we have new NPM.
before_install: before_install:
- npm i -g npm - npm install -g npm
# Workaround for a permissions issue with Travis virtual machine images
script:
- npm run lint
- npm test
- npm run coverage
addons: addons:
firefox: 'latest' firefox: 'latest'
@ -14,6 +20,5 @@ before_script:
- export DISPLAY=:99.0 - export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start - sh -e /etc/init.d/xvfb start
script: after_success:
- npm run lint - npm run coverage-publish
- npm test

View File

@ -3,7 +3,7 @@
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](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) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Build Status](https://travis-ci.org/diasdavid/js-peer-id.svg?style=flat-square)](https://travis-ci.org/diasdavid/js-peer-id) [![Build Status](https://travis-ci.org/diasdavid/js-peer-id.svg?style=flat-square)](https://travis-ci.org/diasdavid/js-peer-id)
![](https://img.shields.io/badge/coverage-100%25-brightgreen.svg?style=flat-square) [![Coverage Status](https://coveralls.io/repos/github/diasdavid/js-peer-id/badge.svg?branch=master)](https://coveralls.io/github/diasdavid/js-peer-id?branch=master)
[![Dependency Status](https://david-dm.org/diasdavid/js-peer-id.svg?style=flat-square)](https://david-dm.org/diasdavid/js-peer-id) [![Dependency Status](https://david-dm.org/diasdavid/js-peer-id.svg?style=flat-square)](https://david-dm.org/diasdavid/js-peer-id)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)

View File

@ -1,3 +1,12 @@
machine: machine:
node: node:
version: stable 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

View File

@ -5,13 +5,14 @@
"main": "lib/index.js", "main": "lib/index.js",
"jsnext:main": "src/index.js", "jsnext:main": "src/index.js",
"scripts": { "scripts": {
"lint": "dignified-lint", "lint": "aegir-lint",
"build": "dignified-build", "build": "aegir-build",
"test": "dignified-test", "test": "aegir-test",
"test:node": "dignified-test node", "test:node": "aegir-test node",
"test:browser": "dignified-test browser", "test:browser": "aegir-test browser",
"release": "dignified-release", "release": "aegir-release",
"coverage": "dignified-coverage" "coverage": "aegir-coverage",
"coverage-publish": "aegir-coverage publish"
}, },
"keywords": [ "keywords": [
"IPFS" "IPFS"
@ -30,11 +31,10 @@
}, },
"homepage": "https://github.com/diasdavid/js-peer-id", "homepage": "https://github.com/diasdavid/js-peer-id",
"devDependencies": { "devDependencies": {
"aegir": "^2.1.1",
"buffer-loader": "0.0.1", "buffer-loader": "0.0.1",
"chai": "^3.5.0", "chai": "^3.5.0",
"dignified.js": "^1.0.0", "pre-commit": "^1.1.2"
"istanbul": "^0.4.2",
"pre-commit": "^1.1.1"
}, },
"dependencies": { "dependencies": {
"bs58": "^3.0.0", "bs58": "^3.0.0",