Reputation: 101
I'd like to use travis to build my project, I noticed that it build on Ubuntu, I was wondering if it is possible to build using a CentOS VM?
Upvotes: 4
Views: 4374
Reputation: 5465
Yes. You can build and run your tests on CentOS by using Docker.
See the answer to this question for an example .travis.yml:
How to run tests on CentOS 7 with Travis-CI?
Upvotes: 7
Reputation: 3651
You can build travis-ci and travis-build locally to run against your code. This way it can run on CentOS and RHEL. (I have tested this.)
The problem is the build servers are created using travis-cookbooks and they do not currently support RHEL / CentOS. So the hosted version of travis-ci will not work with Fedora / CentOS / RHEL until this package is modified to support them.
Upvotes: 1