Travis support for PRs and master, stable5 and stable6

Continuation of #8913
This is just a preparation for the coverage report upload to scrutinizer and then will be used.