Revert "Revert "Travis build for qt5 branch""

This reverts commit 8b96020643f74667e58565b05790bcf2d1c7dad4.