Update .travis.yml to install only necessary packages.