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

旧街凉风 提交于 2019-12-31 09:12:10

问题


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.


回答1:


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




回答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



来源:https://stackoverflow.com/questions/19818336/how-to-make-travis-ci-test-package-for-linux-os-x-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!