Skip to content

Commit

Permalink
Merge pull request #14 from getlackey/coveralls
Browse files Browse the repository at this point in the history
coveralls
  • Loading branch information
sielay committed Jul 13, 2016
2 parents 3fbdaab + 16b4021 commit afc1f4d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 25 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Lackey

![Travis Status for Lackey](https://travis-ci.org/getlackey/lackey-cms.svg?branch=master)
[![Code Climate](https://codeclimate.com/github/getlackey/lackey-cms/badges/gpa.svg)](https://codeclimate.com/github/getlackey/lackey-cms)
[![Dependency Status](https://david-dm.org/getlackey/lackey-cms.svg)](https://david-dm.org/getlackey/lackey-cms) ![](https://reposs.herokuapp.com/?path=getlackey/lackey-cms) [![npm version](https://badge.fury.io/js/lackey-cms.svg)](https://badge.fury.io/js/lackey-cms) [![This is a forkable respository](https://img.shields.io/badge/forkable-yes-brightgreen.svg)](https://basicallydan.github.io/forkability/?u=getlackey&r=lackey-cms&l=nodejs)
* ![Travis Status for Lackey](https://travis-ci.org/getlackey/lackey-cms.svg?branch=master)
* [![Code Climate](https://codeclimate.com/github/getlackey/lackey-cms/badges/gpa.svg)](https://codeclimate.com/github/getlackey/lackey-cms) #11
* [![Dependency Status](https://david-dm.org/getlackey/lackey-cms.svg)](https://david-dm.org/getlackey/lackey-cms) #12
* ![](https://reposs.herokuapp.com/?path=getlackey/lackey-cms)
* [![npm version](https://badge.fury.io/js/lackey-cms.svg)](https://badge.fury.io/js/lackey-cms)
* [![This is a forkable respository](https://img.shields.io/badge/forkable-yes-brightgreen.svg)](https://basicallydan.github.io/forkability/?u=getlackey&r=lackey-cms&l=nodejs)
* [![Coverage Status](https://coveralls.io/repos/github/getlackey/lackey-cms/badge.svg?branch=coveralls)](https://coveralls.io/github/getlackey/lackey-cms?branch=coveralls) #13

![Lackey](./docs/lackey-logo.png)

_Version 0.5.0-rc2_
_Version 0.5.5

Lackey is __Best Practice Driven CMS__

Expand Down
23 changes: 17 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ const gulp = require('gulp'),
del = require('del'),
gutil = require('gulp-util'),
rename = require('gulp-rename'),
path = require('path'),
fs = require('fs'),
gulpJsdoc2md = require('gulp-jsdoc-to-markdown');
gulpJsdoc2md = require('gulp-jsdoc-to-markdown'),
coveralls = require('gulp-coveralls');

if (!GLOBAL.LACKEY_PATH) {
/* istanbul ignore next */
Expand Down Expand Up @@ -88,7 +90,19 @@ gulp.task('pre-test', ['pre-test:clean'], function () {
.pipe(istanbul.hookRequire());
});

gulp.task('test', ['pre-test'], function () {
gulp.task('test', ['istanbul'], () => {
if (!process.env.CI) {
process.exit(0);
}

return gulp.src(path.join(__dirname, 'coverage/lcov.info'))
.pipe(coveralls())
.on('end', () => {
process.exit(0);
});
});

gulp.task('istanbul', ['pre-test'], function () {
return gulp.src([
'test/**/*.js',
'modules/*/test/server/models/**/*.js',
Expand All @@ -107,10 +121,7 @@ gulp.task('test', ['pre-test'], function () {
thresholds: {
global: 1
}
}))
.once('end', function () {
process.exit();
});
}));
});

gulp.task('mocha', ['pre-test:clean'], function () {
Expand Down
26 changes: 11 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"dependencies": {
"acl": "^0.4.9",
"adaro": "^1.0.1",
"async": "^1.5.2",
"atomus": "2.0.0",
"aws-sdk": "^2.3.8",
"bestmatch": "^1.1.0",
Expand Down Expand Up @@ -54,19 +55,26 @@
"falcor-router": "^0.4.0",
"file-type": "^3.8.0",
"filedrop": "^2.0.0",
"fixture-stdout": "^0.2.1",
"glob": "^7.0.3",
"gravatar": "^1.4.0",
"guid": "0.0.12",
"gulp": "^3.9.0",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.0",
"gulp-browserify": "^0.5.1",
"gulp-concat": "^2.6.0",
"gulp-coveralls": "^0.1.4",
"gulp-dust-2.7": "^4.0.0",
"gulp-eslint": "^2.0.0",
"gulp-istanbul": "^0.10.3",
"gulp-jsdoc-to-markdown": "^1.2.2",
"gulp-mocha": "^2.2.0",
"gulp-nodemon": "^2.0.7",
"gulp-plumber": "^1.1.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.3.1",
"gulp-sass-lint": "^1.1.1",
"gulp-util": "^3.0.7",
"http-status": "^0.2.2",
"humanize": "0.0.9",
"js-yaml": "^3.5.5",
Expand All @@ -92,25 +100,13 @@
"prosemirror": "^0.6.0",
"query-string": "^4.1.0",
"rimraf": "^2.5.2",
"should": "^8.1.1",
"slug": "^0.9.1",
"socket.io": "^1.4.6",
"socket.io-client": "^1.4.6",
"tween.js": "^16.3.4",
"twitter": "1.2.5",
"url": "^0.11.0",
"user-agent-parser": "^0.6.0",
"async": "^1.5.2",
"debug": "^2.2.0",
"fixture-stdout": "^0.2.1",
"gulp": "^3.9.1",
"gulp-concat": "^2.6.0",
"gulp-eslint": "^2.0.0",
"gulp-istanbul": "^0.10.3",
"gulp-jsdoc-to-markdown": "^1.2.2",
"gulp-mocha": "^2.2.0",
"gulp-rename": "^1.2.2",
"gulp-util": "^3.0.7",
"js-yaml": "^3.5.5",
"should": "^8.1.1"
"user-agent-parser": "^0.6.0"
}
}

0 comments on commit afc1f4d

Please sign in to comment.