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

后端 未结 2 429
鱼传尺愫
鱼传尺愫 2021-02-01 02:33

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 woul

2条回答
  •  时光说笑
    2021-02-01 02:34

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

提交回复
热议问题