38

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.

nbro
  • 15,395
  • 32
  • 113
  • 196
AJcodez
  • 31,780
  • 20
  • 84
  • 118

2 Answers2

39

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:

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

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

Update


There is an open issue for Travis CI:

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).

  • 1
    Support for Windows appears to unfortunately have stalled. "As for Windows, we do have ideas on it, and once we know more, we'll update this ticket." was written in 2015. – Björn Lindqvist Jan 14 '18 at 21:24
2

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

drojf
  • 2,395
  • 2
  • 15
  • 9