# Using a build matrix to reduce code

**URL:** <https://travis-ci.community/t/using-a-build-matrix-to-reduce-code/2012>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [January 26, 2019, 6:32pm UTC](https://travis-ci.community/t/using-a-build-matrix-to-reduce-code/2012 "2019-01-26T18:32:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy5995](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/andy5995/32/533_2.png) [@andy5995](https://travis-ci.community/u/andy5995)\
**Post date:** [January 26, 2019, 6:32pm UTC](https://travis-ci.community/t/using-a-build-matrix-to-reduce-code/2012/1 "2019-01-26T18:32:54Z")

</div>

I’m working on a pull request for the Geany project. Right now, this code from .travis.yml on [L8-19](https://github.com/geany/geany/blob/e3fe037bb62a74183de1cefbe5d71aeb9979deb4/.travis.yml#L8-19) runs 12 different jobs. Is there a way to use a build matrix to reduce the lines of code?
