2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

run qunit tests in phantomjs for travis-ci

This commit is contained in:
Jacob Thornton
2012-04-19 17:34:07 -07:00
parent 1160935446
commit 03f78f7a60
7 changed files with 117 additions and 2 deletions
+6 -2
View File
@@ -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