Revert "Revert "Tests: update scripts for Travis CI""

This reverts commit 0d1c4133b6603dd411c9f8d92739c7f841fc210c.