是否可以在 Travis (travis-ci.org) 上测试一个 Objective-C 项目(没有 UI,没有模拟器)? [英] Is it possible to make an Objective-C project (no UI, no simulator) to be tested on Travis (travis-ci.org)?

查看:24
本文介绍了是否可以在 Travis (travis-ci.org) 上测试一个 Objective-C 项目(没有 UI,没有模拟器)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能在 Travis 上构建一个 Objective-C 项目(没有 UI,不需要模拟器,托管在 Github 上)?

当前 Travis 文档 似乎不包含任何关于选择使用 Objective-C 项目的信息基于 Travis 构建.

但是构建 C 项目 说:>

Travis VM 是 32 位的,目前提供海湾合作委员会 4.6叮当 3.1核心 GNU 构建工具链(autotools、make)、cmake、scons

并且该默认测试脚本的运行方式为

./configure &&制作&&做测试

所以,重新表述主题问题:

是否有任何解决方法可以使我的项目当前使用的 SenTestingKit 测试套件表现得像 C 测试套件,因此 Travis VM 可以这样处理?

注意 1:这里是资源列表,似乎与问题有关:

在没有 GUI 的情况下编译 Objective-C.它声称gcc 和clang 都编译Objective-C 2.0,这听起来很有希望!

注意 2:我怀疑可以使用 SenTestingKit 以外的其他测试工具:这个工具应该很容易在没有 GUI 和 xcodebuild 等的情况下运行:我已经为此打开了相关问题:是否有任何基于 Xcode 的 Objective-C 命令行测试工具?.我什至在考虑写一个简单的,以供我的项目使用.

解决方案

几天 Travis 宣布他们现在也支持 objetive-c 项目.有关详细信息,请参阅构建 Objective-C 项目.

更新

甚至可以让 Travis 启动模拟器,以便您可以运行应用程序测试和 UI 相关的东西.我需要做一些额外的工作,但这很简单.我在这里写过.>

I wonder if it is possible to make an Objective-C project (no UI, no simulator is needed, hosted on Github) to be built on Travis?

Current Travis docs seems not to contain any information regarding the option to have Objective-C projects built on Travis.

But Building a C Project says that:

Travis VMs are 32 bit and currently provide

gcc 4.6
clang 3.1
core GNU build toolchain (autotools, make), cmake, scons

and that default test script is run like

./configure && make && make test

So, to rephrase the subject question:

Do any workarounds exist to make SenTestingKit test suite, that my project currently uses, behave like a C test suite, so it could be treated as such by Travis VM?

NOTE 1: Here is the list of resources, which seem to be related to the question:

Compiling Objective-C without a GUI. It claims that Both gcc and clang compile Objective-C 2.0 and that sounds very promising!

NOTE 2: I suspect that it is possible to use some testing tool other than SenTestingKit: this tool should be easy to be run without a GUI and without xcodebuild etc: I've opened related issue for that: Is there any non-Xcode-based command line testing tool for Objective-C?. I am even thinking about writing an easy one just to be used by my project.

解决方案

A few days Travis announced that they are now also supporting objetive-c projects. See Building An Objective-C Project for more info.

Update

It is even possible to make Travis launch the simulator so that you can run application tests and UI related stuff. I required a little extra work, but it's pretty straight forward. I wrote about it here.

这篇关于是否可以在 Travis (travis-ci.org) 上测试一个 Objective-C 项目(没有 UI,没有模拟器)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆