#!/bin/bash

if [ "x$COVERAGE" == "xyes" ]; then
  sudo pip install cpp-coveralls
  # enable to debug coverage
  sudo pip install gcovr
  sudo apt-get install libjson-perl
  sudo apt-get install libjson-xs-perl
  sudo apt-get install libfile-slurp-perl
else
  echo "no dependencies to install"
fi

if [ "x$AUTOTOOLS" == "xyes" ]; then
  sudo add-apt-repository -y ppa:rbose-debianizer/automake &> /dev/null
  sudo apt-get -qq update
  sudo apt-get -qq install automake
  AUTOTOOLS=yes
fi