Skip to content

Commit 066a5a3

Browse files
committed
adding coveralls/travis integration
1 parent 4c3ea39 commit 066a5a3

File tree

6 files changed

+21
-1
lines changed

6 files changed

+21
-1
lines changed

History.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- 0.1.1 2013-10-13
2+
Travis and Coveralls integration testing.
3+
14
- 0.1.0 2013-10-13
25
Removing built-in Redis store to emphasize that you should plug in your own
36
cache store.

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ test: cover check-coverage
1717
test-cov: cover check-coverage
1818
open coverage/lcov-report/index.html
1919

20+
test-travis: lint
21+
./node_modules/.bin/istanbul cover test/run.js --report lcovonly \
22+
-- -T unit,functional -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
2023
lint:
2124
./node_modules/.bin/jshint ./lib --config $(BASE)/.jshintrc && \
2225
./node_modules/.bin/jshint ./test --config $(BASE)/.jshintrc

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![build status](https://secure.travis-ci.org/BryanDonovan/node-cache-manager.png)](http://travis-ci.org/BryanDonovan/node-cache-manager)
2+
[![Coverage Status](https://coveralls.io/repos/BryanDonovan/node-cache-manager/badge.png?branch=master)](https://coveralls.io/r/BryanDonovan/node-cache-manager?branch=master)
3+
14
node-cache-manager
25
======================
36

coveralls.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
service_name: travis-ci

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cache-manager",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Cache module for Node.js",
55
"main": "index.js",
66
"scripts": {
@@ -23,6 +23,7 @@
2323
"lru-cache": ">=2.3.0"
2424
},
2525
"devDependencies": {
26+
"coveralls": "~2.3.0",
2627
"istanbul": ">=0.1.29",
2728
"jshint": ">=1.0.1",
2829
"mocha": ">=1.8.1",

travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
node_js:
3+
- 0.8
4+
- 0.10
5+
script: 'make test-travis'
6+
branches:
7+
only:
8+
- master
9+
- develop

0 commit comments

Comments
 (0)