Revert "Tests: update scripts for Travis CI"

This reverts commit e1444ba0db4c378642b036ebd0c025d7970bbc5c.
cmake up: fix Qt5 build on Travis CI