<commit_before>echo "Install and setup apache"
sudo apt-get update > /dev/null
sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-intl php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

sudo a2enmod rewrite
chmod 777 /home/travis/build/cioddi/fleximg.js/img/fleximg_scale

sudo sed -i -e "s,/var/www,/home/travis/build/cioddi/fleximg.js,g" /etc/apache2/sites-available/default
sudo sed -i -e "s,AllowOverride[ ]None,AllowOverride All,g" /etc/apache2/sites-available/default

sudo /etc/init.d/apache2 restart


serverUrl='http://127.0.0.1:4444'
serverFile=selenium-server-standalone-2.35.0.jar
firefoxUrl=http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/21.0/linux-x86_64/en-US/firefox-21.0.tar.bz2
firefoxFile=firefox.tar.bz2
phpVersion=`php -v`


pear channel-discover pear.phpunit.de
pear install phpunit/PHP_Invoker
pear install phpunit/DbUnit
pear install phpunit/PHPUnit_Selenium
pear install phpunit/PHPUnit_Story

echo "Install Bower dependencies"
npm install -g bower
bower install


echo "Downloading Firefox"<commit_msg>saucelab travis integration<commit_after>echo "Install and setup apache"
sudo apt-get update > /dev/null
sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-intl php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

sudo a2enmod rewrite
chmod 777 /home/travis/build/cioddi/fleximg.js/img/fleximg_scale

sudo sed -i -e "s,/var/www,/home/travis/build/cioddi/fleximg.js,g" /etc/apache2/sites-available/default
sudo sed -i -e "s,AllowOverride[ ]None,AllowOverride All,g" /etc/apache2/sites-available/default
sudo sed -i -e "s,\:80,:2000,g" /etc/apache2/sites-available/default


sudo /etc/init.d/apache2 restart


serverUrl='http://127.0.0.1:4444'
serverFile=selenium-server-standalone-2.35.0.jar
firefoxUrl=http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/21.0/linux-x86_64/en-US/firefox-21.0.tar.bz2
firefoxFile=firefox.tar.bz2
phpVersion=`php -v`


pear channel-discover pear.phpunit.de
pear install phpunit/PHP_Invoker
pear install phpunit/DbUnit
pear install phpunit/PHPUnit_Selenium
pear install phpunit/PHPUnit_Story

echo "Install Bower dependencies"
npm install -g bower
bower install


echo "Downloading Firefox"
{'fraction_non_alphanumeric': 0.11843168957154405, 'fraction_numerical': 0.04648342764753436, 'mean_word_length': 4.729166666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1644073', 'n_tokens_mistral': 1085, 'n_tokens_neox': 953, 'n_words': 191}