From b6dd52bd6a8c5671f58d6f5a47760d8f96c9ab15 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Tue, 25 Mar 2014 21:54:15 -0400 Subject: [PATCH] add travis build icon --- README.md | 2 ++ archive/v0.1.1/mithril-tests.js | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index bfdce655..c3c18f36 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/lhorie/mithril.js.svg?branch=master)](https://travis-ci.org/lhorie/mithril.js) + # Mithril A Javascript Framework for Building Brilliant Applications diff --git a/archive/v0.1.1/mithril-tests.js b/archive/v0.1.1/mithril-tests.js index 1415912b..9bec759a 100644 --- a/archive/v0.1.1/mithril-tests.js +++ b/archive/v0.1.1/mithril-tests.js @@ -432,7 +432,12 @@ test.print = function(print) { print(test.failures[i].toString()) } print("tests: " + test.total + "\nfailures: " + test.failures.length) + + if (test.failures.length > 0) { + throw new Error(test.failures.length + " tests did not pass") + } } + var mock = {} mock.window = new function() { var window = {}