Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.

Commit 0438ee7

Browse files
authored
chore : add travis (#38)
adds travis and cleans up package.json
1 parent 2e735f5 commit 0438ee7

File tree

5 files changed

+55
-50
lines changed

5 files changed

+55
-50
lines changed

.npmignore

Lines changed: 0 additions & 30 deletions
This file was deleted.

.travis.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
language: node_js
2+
cache: npm
3+
stages:
4+
- check
5+
- test
6+
- cov
7+
8+
node_js:
9+
- '10'
10+
11+
os:
12+
- linux
13+
- osx
14+
15+
script: npx nyc -s npm run test:node -- --bail
16+
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
17+
18+
jobs:
19+
include:
20+
- os: windows
21+
filter_secrets: false
22+
cache: false
23+
24+
- stage: check
25+
script:
26+
- npx aegir commitlint --travis
27+
- npx aegir dep-check
28+
- npm run lint
29+
30+
- stage: test
31+
name: chrome
32+
addons:
33+
chrome: stable
34+
script: npx aegir test -t browser -t webworker
35+
36+
- stage: test
37+
name: firefox
38+
addons:
39+
firefox: latest
40+
script: npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless
41+
42+
notifications:
43+
email: false

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![](https://img.shields.io/badge/project-multiformats-blue.svg?style=flat-square)](https://github.com/multiformats/multiformats)
55
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](https://webchat.freenode.net/?channels=%23ipfs)
66
[![Coverage Status](https://coveralls.io/repos/github/multiformats/js-multihashing-async/badge.svg?branch=master)](https://coveralls.io/github/multiformats/js-multihashing-async?branch=master)
7+
[![Travis CI](https://flat.badgen.net/travis/ipfs/js-multihashing-async)](https://travis-ci.com/ipfs/js-multihashing-async)
78
[![Dependency Status](https://david-dm.org/multiformats/js-multihashing-async.svg?style=flat-square)](https://david-dm.org/multiformats/js-multihashing-async)
89
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
910
[![](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

ci/Jenkinsfile

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,22 @@
22
"name": "multihashing-async",
33
"version": "0.5.2",
44
"description": "multiple hash functions",
5+
"keywords": [
6+
"multihash"
7+
],
8+
"homepage": "https://github.com/multiformats/js-multihashing-async",
9+
"bugs": "https://github.com/multiformats/js-multihashing-async/issues",
10+
"license": "MIT",
511
"leadMaintainer": "Hugo Dias <mail@hugodias.me>",
12+
"files": [
13+
"src",
14+
"dist"
15+
],
616
"main": "src/index.js",
717
"browser": {
818
"./src/crypto-sha1-2.js": "./src/crypto-sha1-2-browser.js"
919
},
20+
"repository": "github:multiformats/js-multihashing-async",
1021
"scripts": {
1122
"test": "aegir test",
1223
"test:browser": "aegir test -t browser",
@@ -17,25 +28,8 @@
1728
"release-minor": "aegir release --type minor --docs",
1829
"release-major": "aegir release --type major --docs",
1930
"build": "aegir build",
20-
"coverage": "aegir coverage",
21-
"coverage-publish": "aegir coverage publish",
2231
"bench": "node benchmarks/hash.js"
2332
},
24-
"pre-push": [
25-
"lint",
26-
"test"
27-
],
28-
"repository": {
29-
"type": "git",
30-
"url": "git://github.com/multiformats/js-multihashing-async.git"
31-
},
32-
"keywords": [
33-
"multihash"
34-
],
35-
"license": "MIT",
36-
"bugs": {
37-
"url": "https://github.com/multiformats/js-multihashing-async/issues"
38-
},
3933
"dependencies": {
4034
"blakejs": "^1.1.0",
4135
"js-sha3": "~0.8.0",
@@ -53,7 +47,6 @@
5347
"node": ">=6.0.0",
5448
"npm": ">=3.0.0"
5549
},
56-
"homepage": "https://github.com/multiformats/js-multihashing-async",
5750
"contributors": [
5851
"André Cruz <andremiguelcruz@msn.com>",
5952
"David Dias <daviddias.p@gmail.com>",

0 commit comments

Comments
 (0)