Split up the single build into according to several test groups.

This should solve the problem with test run exceeding Travis CI 50 minutes limit.