From b18c44c8d1c9e8ec3194532c13de96c250e6f97b Mon Sep 17 00:00:00 2001 From: Bryan Kendall Date: Thu, 25 Oct 2018 21:23:03 -0700 Subject: [PATCH] Readme, coverage, testing (#975) * clean up readme badges * pin 10, remove stable * fix coveralls reporting --- .travis.yml | 4 ++-- README.md | 13 ++++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 96210ddd..adfc68c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,10 @@ language: node_js node_js: - '6' - '8' -- stable +- '10' sudo: false after_script: -- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js +- nyc report --reporter=text-lcov | coveralls cache: directories: - node_modules diff --git a/README.md b/README.md index af7efdbc..28d5da6c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Firebase CLI [![Build Status](https://travis-ci.org/firebase/firebase-tools.svg?branch=master)](https://travis-ci.org/firebase/firebase-tools) [![Coverage Status](https://img.shields.io/coveralls/firebase/firebase-tools.svg?branch=master&style=flat)](https://coveralls.io/r/firebase/firebase-tools) [![Node Version](https://img.shields.io/node/v/firebase-tools.svg)](https://www.npmjs.com/package/firebase-tools) [![NPM version](https://badge.fury.io/js/firebase-tools.svg)](http://badge.fury.io/js/firebase-tools) +# Firebase CLI [![Build Status][travis-badge]][travis-ci] [![Coverage Status][coveralls-badge]][coveralls] [![Node Version][node-badge]][npm] [![NPM version][npm-badge]][npm] These are the Firebase Command Line Interface (CLI) Tools. They can be used to: @@ -9,7 +9,6 @@ These are the Firebase Command Line Interface (CLI) Tools. They can be used to: To get started with the Firebase CLI, read the full list of commands below or check out the [hosting-specific CLI documentation](https://firebase.google.com/docs/hosting/quickstart). - ## Installation To install the Firebase CLI, you first need to [sign up for a Firebase account](https://firebase.google.com/). @@ -25,7 +24,6 @@ npm install -g firebase-tools This will provide you with the globally accessible `firebase` command. - ## Commands **The command `firebase --help` lists the available commands and `firebase --help` shows more details for an individual command.** @@ -148,3 +146,12 @@ client.deploy({ // handle error }); ``` + +[travis-ci]: https://travis-ci.org/firebase/firebase-tools +[coveralls]: https://coveralls.io/r/firebase/firebase-tools +[npm]: https://www.npmjs.com/package/firebase-tools + +[travis-badge]: https://img.shields.io/travis/firebase/firebase-tools/master.svg +[coveralls-badge]: https://img.shields.io/coveralls/firebase/firebase-tools.svg?branch=master&style=flat +[node-badge]: https://img.shields.io/node/v/firebase-tools.svg +[npm-badge]: https://img.shields.io/npm/v/firebase-tools.svg