Travis: call the testing in the script section

That way failing tests cause the build to be marked failed instead of
errored
Merge pull request #1162 from nschonni/travis-run-test-in-script-section

Travis: call the testing in the script section