This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat <<END_ROOT_SCRIPT | sudo /bin/bash -s | |
| set -e # exit if any command exits with nonzero | |
| export DEBIAN_FRONTEND=noninteractive | |
| # run as root | |
| apt-get update | |
| apt-get install -y software-properties-common | |
| apt-add-repository -y ppa:chris-lea/node.js | |
| apt-get update | |
| apt-get install -y git nodejs libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var testConfig = { | |
| timeout: 3000, | |
| freq: 250 | |
| }; | |
| function doTryCatch(f){try {return f();} catch(e){error(e);}} | |
| function error(msg){console.error("phantomjs-joounit> "+ msg);phantom.exit(1);} | |
| doTryCatch( | |
| function (){ | |
| for(var i = 0; i < phantom.args.length ; i++){ | |
| var arg = phantom.args[i]; |
NewerOlder