diff --git a/.travis.yml b/.travis.yml
index 164ecb478..7cb1cf47c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1 +1,3 @@
-script: cd test && phantomjs lib/run_jasmine_test.coffee index.html
+before_script:
+ - "npm install -g mocha-phantomjs"
+script: mocha-phantomjs test/index.html
diff --git a/test/index.html b/test/index.html
index 5803b12e3..970f0f52c 100644
--- a/test/index.html
+++ b/test/index.html
@@ -77,7 +77,7 @@