Commit 3684a1f7 authored by analog-nico's avatar analog-nico
Browse files

Introduced Coveralls

parent b18872df
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -13,7 +13,7 @@ Using io.js? Please read the [support section](#support-for-iojs).


---
---


[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/request/request-promise?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)          [![Build Status](https://travis-ci.org/request/request-promise.svg?branch=master)](https://travis-ci.org/request/request-promise) [![Coverage Status](http://img.shields.io/badge/coverage-far%20beyond%20100%25-brightgreen.svg)](#can-i-trust-this-module) [![Dependency Status](https://david-dm.org/request/request-promise.svg)](https://david-dm.org/request/request-promise)
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/request/request-promise?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)          [![Build Status](https://travis-ci.org/request/request-promise.svg?branch=master)](https://travis-ci.org/request/request-promise) [![Coverage Status](https://coveralls.io/repos/request/request-promise/badge.png)](https://coveralls.io/r/request/request-promise?branch=master) [![Dependency Status](https://david-dm.org/request/request-promise.svg)](https://david-dm.org/request/request-promise)


The world-famous HTTP client "Request" now Promises/A+ compliant. Powered by Bluebird.
The world-famous HTTP client "Request" now Promises/A+ compliant. Powered by Bluebird.


+14 −0
Original line number Original line Diff line number Diff line
@@ -8,6 +8,7 @@ var istanbul = require('gulp-istanbul');
var mocha = require('gulp-mocha');
var mocha = require('gulp-mocha');
var chalk = require('chalk');
var chalk = require('chalk');
var rimraf = require('rimraf');
var rimraf = require('rimraf');
var coveralls = require('gulp-coveralls');


var chai = require("chai");
var chai = require("chai");
chai.use(require("chai-as-promised"));
chai.use(require("chai-as-promised"));
@@ -93,3 +94,16 @@ gulp.task('test-without-coverage', function () {
gulp.task('clean', function (done) {
gulp.task('clean', function (done) {
    rimraf('./coverage', done);
    rimraf('./coverage', done);
});
});

gulp.task('ci', function (done) {
    runSequence('validate', 'coveralls', 'test-without-coverage', done);
});

gulp.task('ci-no-cov', function (done) {
    runSequence('lint', 'test-without-coverage', done);
});

gulp.task('coveralls', function () {
    return gulp.src('coverage/**/lcov.info')
        .pipe(coveralls());
});
+2 −1
Original line number Original line Diff line number Diff line
@@ -26,7 +26,7 @@
    "url": "https://github.com/request/request-promise.git"
    "url": "https://github.com/request/request-promise.git"
  },
  },
  "scripts": {
  "scripts": {
    "test": "./node_modules/.bin/gulp validate"
    "test": "./node_modules/.bin/gulp ci"
  },
  },
  "dependencies": {
  "dependencies": {
    "bluebird": "^2.3",
    "bluebird": "^2.3",
@@ -40,6 +40,7 @@
    "chalk": "^1.1.1",
    "chalk": "^1.1.1",
    "event-stream": "3.3.x",
    "event-stream": "3.3.x",
    "gulp": "3.8.x",
    "gulp": "3.8.x",
    "gulp-coveralls": "0.1.x",
    "gulp-istanbul": "0.8.x",
    "gulp-istanbul": "0.8.x",
    "gulp-jshint": "1.10.x",
    "gulp-jshint": "1.10.x",
    "gulp-mocha": "2.0.x",
    "gulp-mocha": "2.0.x",