diff --git a/.travis.yml b/.travis.yml index 22a2e83d..c2fa3d73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,7 @@ language: node_js node_js: + - "stable" - "4" - - "0.12" - - "0.11" - - "0.10" - - "0.8" - - "0.6" +sudo: false +script: + - npm run-script test:ci diff --git a/ReadMe.md b/ReadMe.md index f09eb709..91f4bc15 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -1,5 +1,6 @@ -# colors.js [![Build Status](https://travis-ci.org/Marak/colors.js.svg?branch=master)](https://travis-ci.org/Marak/colors.js) - +# colors.js +[![Build Status](https://travis-ci.org/Marak/colors.js.svg?branch=master)](https://travis-ci.org/Marak/colors.js) +[![coverage](https://img.shields.io/coveralls/MeriemKhelifi/colors.js.svg)](https://coveralls.io/github/MeriemKhelifi/colors.js) ## get color and style in your node.js console ![Demo](https://raw.githubusercontent.com/Marak/colors.js/master/screenshots/colors.png) diff --git a/package.json b/package.json index c3650644..35ac5702 100644 --- a/package.json +++ b/package.json @@ -1,28 +1,38 @@ { - "name": "colors", - "description": "get colors in your node.js console", - "version": "1.1.2", - "author": "Marak Squires", - "homepage": "https://github.com/Marak/colors.js", - "bugs": "https://github.com/Marak/colors.js/issues", - "keywords": [ "ansi", "terminal", "colors" ], - "repository": { - "type": "git", - "url": "http://github.com/Marak/colors.js.git" - }, - "license": "MIT", - "scripts": { - "test": "node tests/basic-test.js && node tests/safe-test.js" - }, - "engines": { - "node": ">=0.1.90" - }, - "main": "lib", - "files": [ - "examples", - "lib", - "LICENSE", - "safe.js", - "themes" - ] + "name": "colors", + "description": "get colors in your node.js console", + "version": "1.1.2", + "author": "Marak Squires", + "homepage": "https://github.com/Marak/colors.js", + "bugs": "https://github.com/Marak/colors.js/issues", + "keywords": [ + "ansi", + "terminal", + "colors" + ], + "repository": { + "type": "git", + "url": "http://github.com/Marak/colors.js.git" + }, + "license": "MIT", + "scripts": { + "test": "node tests/basic-test.js && node tests/safe-test.js", + "test:coverage": "istanbul cover tests/*.js", + "test:ci": "istanbul cover tests/*.js && cat coverage/lcov.info | coveralls" + }, + "engines": { + "node": ">=0.1.90" + }, + "main": "lib", + "files": [ + "examples", + "lib", + "LICENSE", + "safe.js", + "themes" + ], + "devDependencies": { + "coveralls": "2.12.0", + "istanbul": "0.4.5" + } }