Travis support for PRs and master, stable5 and stable6

Continuation of #8913
This is definetely wrong behaviour as we want to know if the tale exists. Maybe we should use `=` as operator