From fb804e1981dfbdeb0ed59c346929e6183973d31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Padilla?= Date: Tue, 11 Nov 2014 21:59:19 -0400 Subject: [PATCH 1/3] Ignore bower_components --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index f702af7..857019f 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,5 @@ logs results node_modules +bower_components npm-debug.log From b5d5bc6f48f5d7e9ab2861dcba3f4113ea07b9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Padilla?= Date: Tue, 11 Nov 2014 21:59:26 -0400 Subject: [PATCH 2/3] Fix failing test --- test/logging_test.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/logging_test.coffee b/test/logging_test.coffee index 29ad547..e14bf94 100644 --- a/test/logging_test.coffee +++ b/test/logging_test.coffee @@ -20,7 +20,7 @@ describe 'log', -> template = Handlebars.compile(source) template() - _log.history.should.include 'Hi console :)' + _log.history.should.containEql 'Hi console :)' _log.history = [] @@ -32,4 +32,4 @@ describe 'debug', -> context = 'elving' template(context) - _log.history.should.include 'elving' + _log.history.should.containEql 'elving' From 23487ed42badcf3da1656699cfbde880b1fad239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Padilla?= Date: Tue, 11 Nov 2014 21:59:35 -0400 Subject: [PATCH 3/3] Add test setup for Travis CI --- .travis.yml | 4 ++++ README.md | 2 +- package.json | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..df63076 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: + - "0.10" + - "0.8" diff --git a/README.md b/README.md index 46c0b48..d5f9179 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Swag +# Swag [![Build Status](https://travis-ci.org/elving/swag.svg?branch=master)](https://travis-ci.org/elving/swag) [![NPM](https://nodei.co/npm/swag.png?downloads=true&stars=true)](https://nodei.co/npm/swag/) diff --git a/package.json b/package.json index cfabddc..024eb20 100644 --- a/package.json +++ b/package.json @@ -30,5 +30,8 @@ }], "engine": { "node": ">=0.6.17" + }, + "scripts": { + "test": "cake test" } }