ci: use common script for tests on travis and gitlab

For one, it's not unreasonable that we want to run the same
tests both for gitlab and travis.

Move the actual tests into a script, which is called by both
CI environments.

We still can do something different, based on the environment.
The advantage here is, that the common part will be shared, and
the places where we differ can easily be spot.
5 jobs for th/ci-script in 15 minutes and 39 seconds (queued for 16 minutes and 33 seconds)