Permalink
Browse files

Test against PhantomJS 2.1.1 on Travis

This will get all the ArrayBuffer & Blob tests passing.
1 parent 4cc46b2 commit 25f7646c7a9819af0eeaa682bbd522a9332afa63 @mislav mislav committed Nov 11, 2016
Showing with 10 additions and 1 deletion.
  1. +5 −1 Makefile
  2. +5 −0 script/phantomjs
View
@@ -27,4 +27,8 @@ sauce_connect/bin/sc:
curl -fsSL http://saucelabs.com/downloads/sc-4.3.16-linux.tar.gz | tar xz -C sauce_connect --strip-components 1
endif
-.PHONY: build clean lint test saucelabs travis
+phantomjs/bin/phantomjs:
+ mkdir -p phantomjs
+ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O- | tar xj -C phantomjs --strip-components 1
+
+.PHONY: build clean lint test
View
@@ -17,6 +17,11 @@ STATUS=0
reporter=dot
[ -z "$CI" ] || reporter=spec
+if [ -n "$TRAVIS" ]; then
+ make phantomjs/bin/phantomjs
+ export PATH="$PWD/phantomjs/bin:$PATH"
+fi
+
run() {
phantomjs ./node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js \
"$1" $reporter "{\"useColors\":true, \"hooks\":\"$PWD/test/mocha-phantomjs-hooks.js\"}" \

0 comments on commit 25f7646

Please sign in to comment.