split Travis CI test script to an external file.