aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-04-19 17:34:07 -0700
committerJacob Thornton <[email protected]>2012-04-19 17:34:07 -0700
commit03f78f7a60a631c01c1fb085b01d98bee61d7bb6 (patch)
treeea5b46ca986a3027140fff074b8bb1f737a1547d /Makefile
parent1160935446e06339d8c7e09415d57086746fbce5 (diff)
downloadbootstrap-03f78f7a60a631c01c1fb085b01d98bee61d7bb6.tar.xz
bootstrap-03f78f7a60a631c01c1fb085b01d98bee61d7bb6.zip
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 e7a0f035f..9a4ffa453 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