To test this patch, Travis must be told about the .travis.yml file. To enable, an admin of the 0 A.D. GitHub repo must create an account on https://travis-ci.org , add the 0 A.D. repo by syncing, then toggle the enable/disable switch. Once that's done, when a branch is created with these files, a travis build will trigger.
I have already set this up on a branch on my fork, and the output can be seen at https://travis-ci.org/andy5995/0ad/builds/417839315
I submitted a pull request with this patch. Normally pull requests are not done through the 0 A.D. GitHub repo, but to test this, it must be tested on the GitHub repo. It does NOT have to be merged into the master branch to be tested. The Travis service can test any branch and any pull request.