From 4d8e028f8f0588c4be2775ae08acb165cda9773e Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Mon, 18 Feb 2019 16:37:57 +0000 Subject: [PATCH 1/3] ci: add travis --- .travis.yml | 40 ++++++++++++++++++++++++++++++++++++++++ README.md | 1 + ci/Jenkinsfile | 2 -- package.json | 29 +++++++++++------------------ 4 files changed, 52 insertions(+), 20 deletions(-) create mode 100644 .travis.yml delete mode 100644 ci/Jenkinsfile diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..d0cf2810 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,40 @@ +language: node_js +cache: npm +stages: + - check + - test + - cov + +node_js: + - '10' + +os: + - linux + - osx + - windows + +script: npx nyc -s npm run test:node -- --bail +after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov + +jobs: + include: + - stage: check + script: + - npx aegir commitlint --travis + - npx aegir dep-check + - npm run lint + + - stage: test + name: chrome + addons: + chrome: stable + script: npx aegir test -t browser -t webworker + + - stage: test + name: firefox + addons: + firefox: latest + script: npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless + +notifications: + email: false diff --git a/README.md b/README.md index 6ba60933..52ad6a21 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![](https://img.shields.io/badge/project-multiformats-blue.svg?style=flat-square)](https://github.com/multiformats/multiformats) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](https://webchat.freenode.net/?channels=%23ipfs) [![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) +[![Travis CI](https://flat.badgen.net/travis/ipfs/js-multihashing-async)](https://travis-ci.com/ipfs/js-multihashing-async) [![Dependency Status](https://david-dm.org/multiformats/js-multihashing-async.svg?style=flat-square)](https://david-dm.org/multiformats/js-multihashing-async) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) [![](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile deleted file mode 100644 index a7da2e54..00000000 --- a/ci/Jenkinsfile +++ /dev/null @@ -1,2 +0,0 @@ -// Warning: This file is automatically synced from https://github.com/ipfs/ci-sync so if you want to change it, please change it there and ask someone to sync all repositories. -javascript() diff --git a/package.json b/package.json index ff8efd87..a6aca8d2 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,22 @@ "name": "multihashing-async", "version": "0.5.2", "description": "multiple hash functions", + "keywords": [ + "multihash" + ], + "homepage": "https://github.com/multiformats/js-multihashing-async", + "bugs": "https://github.com/multiformats/js-multihashing-async/issues", + "license": "MIT", "leadMaintainer": "Hugo Dias ", + "files": [ + "src", + "dist" + ], "main": "src/index.js", "browser": { "./src/crypto-sha1-2.js": "./src/crypto-sha1-2-browser.js" }, + "repository": "github:multiformats/js-multihashing-async", "scripts": { "test": "aegir test", "test:browser": "aegir test -t browser", @@ -17,25 +28,8 @@ "release-minor": "aegir release --type minor --docs", "release-major": "aegir release --type major --docs", "build": "aegir build", - "coverage": "aegir coverage", - "coverage-publish": "aegir coverage publish", "bench": "node benchmarks/hash.js" }, - "pre-push": [ - "lint", - "test" - ], - "repository": { - "type": "git", - "url": "git://github.com/multiformats/js-multihashing-async.git" - }, - "keywords": [ - "multihash" - ], - "license": "MIT", - "bugs": { - "url": "https://github.com/multiformats/js-multihashing-async/issues" - }, "dependencies": { "blakejs": "^1.1.0", "js-sha3": "~0.8.0", @@ -53,7 +47,6 @@ "node": ">=6.0.0", "npm": ">=3.0.0" }, - "homepage": "https://github.com/multiformats/js-multihashing-async", "contributors": [ "André Cruz ", "David Dias ", From a5a886d2de324b2c55890b235ce1792b42bb76c9 Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Mon, 18 Feb 2019 16:38:18 +0000 Subject: [PATCH 2/3] chore: remove npm ignore --- .npmignore | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 94581de5..00000000 --- a/.npmignore +++ /dev/null @@ -1,30 +0,0 @@ -# Logs -logs -*.log - -# Runtime data -pids -*.pid -*.seed - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directory -# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git -node_modules - -test -docs \ No newline at end of file From b6b46575cdcd76132518a12e7c49d96f39923145 Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Tue, 26 Feb 2019 11:34:42 +0000 Subject: [PATCH 3/3] ci: remove cache in windows --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d0cf2810..4e54a69e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,13 +11,16 @@ node_js: os: - linux - osx - - windows script: npx nyc -s npm run test:node -- --bail after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov jobs: include: + - os: windows + filter_secrets: false + cache: false + - stage: check script: - npx aegir commitlint --travis