Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Travis CI test package for Linux, OS X, Windows?

Is there a way to tell Travis CI (or another continuous integration service) to test the package on different operating systems?

Working with the filesystem, and it would be great to double-check it's all platform-agnostic.

like image 394
AJcodez Avatar asked Nov 06 '13 17:11

AJcodez


People also ask

Which of the following build automation tool can be used with Travis CI?

Travis CI supports parallel testing. It can also be integrated with tools like Slack, HipChat, Email, etc. and get notifications if the build is unsuccessful. Developers can speed up their test suites by executing multiple builds in parallel, across different virtual machines.

Which of the following file is used to configure the Travis CI?

Configuration. Travis CI is configured by adding a file named . travis. yml , which is a YAML format text file, to the root directory of the repository.


2 Answers

Update 3

Windows support has been released! You can now use Travis CI with Linux, macOS, and Windows. You can find their blog post about it here.

Update 2

This feature is enabled now (no need to send request to Travis team). Though still considered beta:

  • Multi-OS

Works fine for me, here is Linux + OSX configuration:

  • .travis.yml
  • build matrix

Windows support still in progress (see windows issues) as alternative AppVeyor can be used. Example of configuration file:

  • appveyor.yml

Update

  • Multi-OS beta testing

There is an open issue for Travis CI:

  • Issue #216

As a workaround for Linux + Mac OS X you can create two branches. One with default config (for Linux) and one with objective-c language (for Mac OS X).

like image 158
user2288008 Avatar answered Oct 14 '22 13:10

user2288008


If anyone is looking for a working, Windows/Mac/Linux python configuration example, see this repository: https://github.com/cclauss/Travis-CI-Python-on-three-OSes

like image 41
drojf Avatar answered Oct 14 '22 13:10

drojf