Skip to content

Commit

Permalink
Test against PhantomJS 2.1.1 on Travis
Browse files Browse the repository at this point in the history
This will get all the ArrayBuffer & Blob tests passing.
  • Loading branch information
mislav committed Nov 11, 2016
1 parent 4cc46b2 commit 25f7646
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions script/phantomjs
Original file line number Diff line number Diff line change
Expand Up @@ -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\"}" \
Expand Down

0 comments on commit 25f7646

Please sign in to comment.