add Travis build matrix to do parallel builds for make and CMake;
separate functionality into scripts under scripts/travis for readability