Travis support for PRs and master, stable5 and stable6

Continuation of #8913
Then I need 3 of them.

One before, then DBMS-specific and then one after the DBMS setup.