Setting up build and test framework.  Mostly copied from <http://repositories.jacob-sparre.dk/reference-build-and-test-setup>.