Use a tests shell script to wrap the commands we use

Extract all of this out of Travis CI's domain and into something
anyone can use.