Use cmake and ctest for Travis

Instead of make, use cmake to do the build, and ctest to run the test.
This should work for other generators and shows the output of the test.