From 25f7646c7a9819af0eeaa682bbd522a9332afa63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Fri, 11 Nov 2016 21:41:23 +0100 Subject: [PATCH] Test against PhantomJS 2.1.1 on Travis This will get all the ArrayBuffer & Blob tests passing. --- Makefile | 6 +++++- script/phantomjs | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ad5ba893..03465698 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/script/phantomjs b/script/phantomjs index a006231d..935a7fa7 100755 --- a/script/phantomjs +++ b/script/phantomjs @@ -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\"}" \