From 1607b05a777ab41bd9ea1456d3abff22a2359e6d Mon Sep 17 00:00:00 2001 From: Kristian Tashkov Date: Tue, 22 Dec 2015 21:46:10 +0200 Subject: [PATCH] Add dependencies in vagrant dev environment for e2e tests --- vagrant.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vagrant.sh b/vagrant.sh index 38246143e8..ceb1e9ab38 100644 --- a/vagrant.sh +++ b/vagrant.sh @@ -26,6 +26,8 @@ function autostart_habitrpg { # Main provisioning echo Setting up Habitica... echo cd /vagrant >> /home/vagrant/.bashrc +# Needed for running e2e tests +echo export DISPLAY=:99 >> /home/vagrant/.bashrc # Prevent warnings: "dpkg-preconfigure: unable to re-open stdin ..." export DEBIAN_FRONTEND=noninteractive @@ -70,6 +72,15 @@ echo Installing node.js apt-get install -qq nodejs echo Updating npm... npm install -g npm +echo Installing Xvfb... +apt-get install -qq xvfb +echo Installing Java7... +apt-get install -qq openjdk-7-jre +echo Downloading Firefox... +wget http://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_40.0.3-0ubuntu1_amd64.deb/download -O firefox.deb >/dev/null 2>&1 +echo Installing Firefox... +dpkg -i firefox.deb +rm firefox.deb cd /vagrant