Add .travis.yml with only building on v2 as other branches do not contain tests.