From 12fcd5d4d648cf5cb2d845d363bccdfd14edd162 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 19 Feb 2019 11:52:20 +0100 Subject: [PATCH] feat(ci): enable codecov --- .travis.yml | 5 +---- README.md | 1 + package.json | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2f4d12f62..e67491410 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,6 @@ language: node_js node_js: - 10.15.1 -env: - global: - - secure: "LUZnP+lhVj0zbFe/tSppMvI6jaXyOos84WZehPImMeara9/RRrRk5QpKsUsqr1x/oHzElJnbAX9OD/GOuEI4fyYv9qBXr8CKxBpmjlM2ElY85WcGm9mntRXtvR0iscR3Jg9kPtUBqzVlh1E/mQjs5GR2nLn0Fe34Xwl6TWd3m6c=" - #- JUNIT_REPORT_PATH=test/report.xml matrix: allow_failures: - os: windows @@ -24,5 +20,6 @@ script: - npm run ci:build - npm run ci:test - npm run ci:lint +after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov notifications: email: false diff --git a/README.md b/README.md index 32a1855f9..60602a3cd 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ [![](https://img.shields.io/badge/mozilla-reviewed-blue.svg)](https://addons.mozilla.org/en-US/firefox/addon/ipfs-companion/) [![i18n status](https://img.shields.io/badge/i18n-translated-blue.svg)](https://github.com/ipfs-shipyard/ipfs-companion/blob/master/docs/localization-notes.md) [![build-status](https://flat.badgen.net/travis/ipfs-shipyard/ipfs-companion)](https://travis-ci.com/ipfs-shipyard/ipfs-companion) +[![codecov](https://codecov.io/gh/ipfs-shipyard/ipfs-companion/branch/master/graph/badge.svg)](https://codecov.io/gh/ipfs-shipyard/ipfs-companion) [![#ipfs-in-web-browsers](https://img.shields.io/badge/irc-%23ipfs--in--web--browsers-808080.svg)](https://webchat.freenode.net/?channels=ipfs-in-web-browsers) | [Firefox](https://www.mozilla.org/firefox/new/) / [Firefox for Android](https://play.google.com/store/apps/details?id=org.mozilla.firefox) | [Chrome](https://www.google.com/chrome/) / [Brave](https://brave.com/) / [Opera](https://www.opera.com/) diff --git a/package.json b/package.json index 6cf2b4ab7..3835cc0fa 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "watch:js": "run-p watch:js:*", "watch:js:webpack": "webpack --watch --progress -d --devtool inline-source-map", "test": "run-s test:*", - "test:functional": " nyc --reporter=lcov --reporter=text mocha --timeout 15000 --require ignore-styles --reporter mocha-jenkins-reporter \"test/functional/**/*.test.js\"", + "test:functional": " nyc --reporter=lcov --reporter=text mocha --timeout 15000 --require ignore-styles \"test/functional/**/*.test.js\"", "lint": "run-s lint:*", "lint:standard": "standard -v \"*.js\" \"add-on/src/**/*.js\" \"test/**/*.js\" \"scripts/**/*.js\"", "lint:web-ext": "web-ext lint", @@ -87,7 +87,6 @@ "json": "9.0.6", "mem-storage-area": "1.0.3", "mocha": "5.2.0", - "mocha-jenkins-reporter": "0.4.1", "npm-run-all": "4.1.5", "nyc": "13.1.0", "raw-loader": "1.0.0",