travis-ci: ensure that the cabal database is up-to-date before running this build

Otherwise, the brand-new 'github' library won't be found.