travis: only run apt-get upgrade when the cpp unit tests run