TravisCI: Rework build using a script

In order to make sure a build actually fails whenever a build-step
fails, this commit moves the steps into a shell-script which is then
executed through the TravisCI configuration file.
TravisCI: Add 'snappy' dependency