Skip to content

Commit

Permalink
add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
allenan committed Apr 12, 2020
1 parent 4a52460 commit d6186f8
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ before_script:
- yarn build
script:
- yarn test
- yarn coveralls
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Helium JS SDK

![npm](https://img.shields.io/npm/v/@helium/crypto)
[![Build Status](https://travis-ci.com/helium/helium-js.svg?branch=master)](https://travis-ci.com/helium/helium-js)
[![Coverage Status](https://coveralls.io/repos/github/helium/helium-js/badge.svg?branch=master)](https://coveralls.io/github/helium/helium-js?branch=master)

> :warning: These libraries are currently in active development and are provided as-is. Helium makes no claims or guarantees about the correctness, reliability or security of this code. PRs welcome, see [CONTRIBUTING](https://github.com/heilum/helium-js/blob/master/CONTRIBUTING.md).

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"build": "lerna run build",
"test": "jest --coverage",
"lint": "eslint --ext .ts ./",
"format": "prettier-standard --format"
"format": "prettier-standard --format",
"coveralls": "cat ./coverage/lcov.info | coveralls"
},
"jest": {
"preset": "ts-jest",
Expand All @@ -27,6 +28,7 @@
"@rollup/plugin-node-resolve": "^7.1.1",
"@types/jest": "^25.2.1",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"coveralls": "^3.0.11",
"eslint-config-airbnb-typescript": "^7.2.1",
"eslint-plugin-import": "^2.20.2",
"jest": "^25.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/src/__tests__/Address.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Address from '../Address'
import { Address } from '../'
import { usersFixture, bobB58 } from '../../../../integration_tests/fixtures/users'

describe('b58', () => {
Expand Down
3 changes: 1 addition & 2 deletions packages/crypto/src/__tests__/Keypair.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Keypair from '../Keypair'
import Mnemonic from '../Mnemonic'
import { Keypair, Mnemonic } from '../'
import { bobWords, bobB58 } from '../../../../integration_tests/fixtures/users'

describe('makeRandom', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/src/__tests__/Mnemonic.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Mnemonic from '../Mnemonic'
import { Mnemonic } from '../'
import { randomBytes } from '../utils'
import { bobWords } from '../../../../integration_tests/fixtures/users'

Expand Down
2 changes: 1 addition & 1 deletion packages/http/src/__tests__/Client.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from 'axios'
import Client from '../Client'
import Client from '../'

jest.mock('axios')
const mockedAxios = axios as jest.Mocked<typeof axios>
Expand Down
2 changes: 1 addition & 1 deletion packages/transactions/src/__tests__/PaymentV1.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PaymentV1 from '../PaymentV1'
import { PaymentV1 } from '../'
import { usersFixture } from '../../../../integration_tests/fixtures/users'

const paymentFixture = async () => {
Expand Down
21 changes: 21 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2660,6 +2660,17 @@ [email protected], cosmiconfig@^5.1.0, cosmiconfig@^5.2.1:
js-yaml "^3.13.1"
parse-json "^4.0.0"

coveralls@^3.0.11:
version "3.0.11"
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.11.tgz#e141da0922b632fcc66620f334460c3f0026a4ce"
integrity sha512-LZPWPR2NyGKyaABnc49dR0fpeP6UqhvGq4B5nUrTQ1UBy55z96+ga7r+/ChMdMJUwBgyJDXBi88UBgz2rs9IiQ==
dependencies:
js-yaml "^3.13.1"
lcov-parse "^1.0.0"
log-driver "^1.2.7"
minimist "^1.2.5"
request "^2.88.0"

cross-spawn@^6.0.0, cross-spawn@^6.0.5:
version "6.0.5"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
Expand Down Expand Up @@ -5304,6 +5315,11 @@ kleur@^3.0.3:
resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==

lcov-parse@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-1.0.0.tgz#eb0d46b54111ebc561acb4c408ef9363bdc8f7e0"
integrity sha1-6w1GtUER68VhrLTECO+TY73I9+A=

lerna@^3.20.2:
version "3.20.2"
resolved "https://registry.yarnpkg.com/lerna/-/lerna-3.20.2.tgz#abf84e73055fe84ee21b46e64baf37b496c24864"
Expand Down Expand Up @@ -5555,6 +5571,11 @@ lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.2.
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==

log-driver@^1.2.7:
version "1.2.7"
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"
integrity sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==

log-symbols@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
Expand Down

0 comments on commit d6186f8

Please sign in to comment.