Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-04-20 04:34:07 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-04-20 04:34:07 +0400
commit03f78f7a60a631c01c1fb085b01d98bee61d7bb6 (patch)
treeea5b46ca986a3027140fff074b8bb1f737a1547d /Makefile
parent1160935446e06339d8c7e09415d57086746fbce5 (diff)
run qunit tests in phantomjs for travis-ci
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e7a0f035f0..9a4ffa4536 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ BOOTSTRAP_RESPONSIVE_LESS = ./less/responsive.less
DATE=$(shell date +%I:%M%p)
CHECK=\033[32m✔\033[39m
+
#
# BUILD DOCS
#
@@ -37,13 +38,16 @@ build:
@echo "<3 @mdo and @fat\n"
#
-# RUN JSHINT
-# TODO: run unittests
+# RUN JSHINT & QUNIT TESTS IN PHANTOMJS
#
test:
jshint js/*.js --config js/.jshintrc
jshint js/tests/unit/*.js --config js/.jshintrc
+ node js/tests/server.js &
+ phantomjs js/tests/phantom.js "http://localhost:3000/js/tests"
+ kill -9 `cat js/tests/pid.txt`
+ rm js/tests/pid.txt
#
# BUILD SIMPLE BOOTSTRAP DIRECTORY