#!/usr/bin/env bash

# ImageMagick. A dependency of Spree.
identify -version
if [ $? == 0 ]; then
    echo "Skipping ImageMagick installation as it's already installed."
else
    sudo apt-get install -y imagemagick
fi

#!/usr/bin/env bash

# ImageMagick. A dependency of Spree.
identify -version
if [ $? == 0 ]; then
    echo "Skipping ImageMagick installation as it's already installed."
else
    sudo apt-get install -y imagemagick
fi

# Install PhantomJS. A headless browser. Used in end-to-end testing.
if which phantomjs > /dev/null; then
  echo "Skipping PhantomJS installation as it's already installed."
else
  sudo apt-get install -y -q=1 phantomjs
fi

Install phantomjs when provisioning the VM.
Install phantomjs when provisioning the VM.

PhantomJS is required for running end-to-end tests.
