Skip to content

Commit

Permalink
Merge pull request #62 from qvantor/coverall_bage
Browse files Browse the repository at this point in the history
Coverall badge added
  • Loading branch information
qvantor authored Sep 13, 2017
2 parents 86145a7 + b25d22a commit 16db919
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 10 deletions.
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
"es2015"
],
"env": {
"test": {
"plugins": [
"istanbul"
]
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# IDE files
.idea
.nyc_output
.vscode
*.iml

Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ deploy:
branch: master
tags: true
node: '8'
after_success:
- npm run coveralls
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Light Client for Exonum Blockchain

[![Build status][travis-image]][travis-url]
[![Coverage Status][coveralls-image]][coveralls-url]
[![License][license-image]][license-url]

[travis-image]: https://img.shields.io/travis/exonum/exonum-client/master.svg
[travis-url]: https://travis-ci.org/exonum/exonum-client
[coveralls-image]: https://coveralls.io/repos/github/exonum/exonum-client/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/exonum/exonum-client?branch=master
[license-image]: https://img.shields.io/github/license/exonum/exonum-client.svg?style=flat-square
[license-url]: https://opensource.org/licenses/Apache-2.0

Expand Down
22 changes: 20 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,30 @@
"tweetnacl": "^0.14.5"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-istanbul": "^4.1.4",
"babel-preset-es2015": "^6.24.1",
"babel-register": "^6.24.1",
"babel-register": "^6.26.0",
"babelify": "^7.3.0",
"chai": "^3.5.0",
"coveralls": "^2.13.1",
"cross-env": "^5.0.5",
"grunt": "^1.0.1",
"grunt-babel": "^6.0.0",
"grunt-browserify": "^5.0.0",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-uglify": "^2.2.0",
"grunt-eslint": "^19.0.0",
"grunt-mocha-test": "^0.13.2",
"istanbul": "^0.4.5",
"load-grunt-tasks": "^3.5.2",
"mocha": "^3.4.2"
"mocha": "^3.5.3",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^11.2.1"
},
"scripts": {
"test": "grunt test",
"coveralls": "cross-env NODE_ENV=test nyc mocha && cat ./coverage/lcov.info | coveralls",
"prepare": "grunt compile"
},
"repository": {
Expand All @@ -47,6 +55,16 @@
"bugs": {
"url": "https://github.com/exonum/exonum-client/issues"
},
"nyc": {
"require": [
"babel-register"
],
"reporter": [
"lcov"
],
"sourceMap": false,
"instrument": false
},
"homepage": "https://github.com/exonum/exonum-client#readme",
"keywords": [
"exonum",
Expand Down
2 changes: 1 addition & 1 deletion test/blockchain.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node, mocha */

var expect = require('chai').expect;
var Exonum = require('..');
var Exonum = require('../src');

describe('Verify block of precommits', function() {

Expand Down
2 changes: 1 addition & 1 deletion test/convertors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node, mocha */

var expect = require('chai').expect;
var Exonum = require('..');
var Exonum = require('../src');

describe('Convert data from one type to another', function() {

Expand Down
2 changes: 1 addition & 1 deletion test/cryptography.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node, mocha */

var expect = require('chai').expect;
var Exonum = require('..');
var Exonum = require('../src');

describe('Check cryptography', function() {

Expand Down
2 changes: 1 addition & 1 deletion test/merkle-patricia-proof.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node, mocha */

var expect = require('chai').expect;
var Exonum = require('..');
var Exonum = require('../src');

describe('Check proof of Merkle Patricia tree', function() {

Expand Down
2 changes: 1 addition & 1 deletion test/merkle-proof.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node, mocha */

var expect = require('chai').expect;
var Exonum = require('..');
var Exonum = require('../src');

describe('Check proof of Merkle tree', function() {

Expand Down
2 changes: 1 addition & 1 deletion test/readme.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node, mocha */

var expect = require('chai').expect;
var Exonum = require('..');
var Exonum = require('../src');

describe('Examples from README.md', function() {
describe('Custom type section', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/serialization.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node, mocha */

var expect = require('chai').expect;
var Exonum = require('..');
var Exonum = require('../src');

describe('Serialize data into array of 8-bit integers', function() {

Expand Down
2 changes: 1 addition & 1 deletion test/types.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node, mocha */

var expect = require('chai').expect;
var Exonum = require('..');
var Exonum = require('../src');

describe('Check built-in types', function() {

Expand Down

0 comments on commit 16db919

Please sign in to comment.