Conditionally install packages on travis-CI