Added API generation and Yaml testing for 1.x and 1.0 branches of elasticsearch.
only generate the necessary branch in CI environments