Skip to content

Commit 3ce54f1

Browse files
author
Aleix602
committed
added travis-ci
1 parent 3c8c740 commit 3ce54f1

File tree

4 files changed

+43
-1
lines changed

4 files changed

+43
-1
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: node_js
2+
node_js:
3+
- "8"
4+
- "9"
5+
cache:
6+
directories:
7+
- "node_modules"
8+
before_script:
9+
- npm run build
10+
script: npm run test:coveralls

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# nem2-sdk for TypeScript and JavaScript
22

3+
[![npm version](https://badge.fury.io/js/nem2-sdk.svg)](https://badge.fury.io/js/nem2-sdk)
4+
[![Build Status](https://api.travis-ci.org/nemtech/nem2-sdk-typescript-javascript.svg?branch=master)](https://travis-ci.org/nemtech/nem2-sdk-typescript-javascript)
5+
[![Coverage Status](https://coveralls.io/repos/github/nemtech/nem2-sdk-typescript-javascript/badge.svg?branch=travis-ci)](https://coveralls.io/github/nemtech/nem2-sdk-typescript-javascript?branch=travis-ci)
6+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
7+
38
The official nem2-sdk for TypeScript and JavaScript, available for browsers, mobile applications and NodeJS, to work
49
with the NEM2 (a.k.a Catapult)
510

package-lock.json

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"test:e2e": "mocha --ui bdd --recursive ./dist/e2e --timeout 90000",
99
"test:all": "mocha --ui bdd --recursive ./dist/ --timeout 90000",
1010
"build": "rm -rf dist/ && tsc",
11-
"test:cov": "nyc npm run test:all && nyc report --reporter=html --timeout 90000"
11+
"test:cov": "nyc --reporter=lcov --reporter=text-lcov npm t && nyc report --reporter=text-lcov",
12+
"test:coveralls": "npm run test:cov | coveralls"
1213
},
1314
"contributors": [
1415
{
@@ -39,6 +40,7 @@
3940
"@types/ws": "^3.2.0",
4041
"assert": "^1.4.1",
4142
"chai": "^4.1.2",
43+
"coveralls": "^3.0.0",
4244
"mocha": "^4.0.1",
4345
"nyc": "^11.3.0",
4446
"ts-mockito": "^2.2.7",

0 commit comments

Comments
 (0)