travis ci

http://www.cnblogs.com/huang0925/archive/2013/05/30/3108370.html

Travis CI的官网介绍是: A hosted continuous integration service for the open source community. 表明它主要是给开源社区提供持续集成服务。其与github这个全球最火爆的代码托管网站高度集成,可以很方便的为github中的项目建立持续集成服务。

它不仅支持多种语言,而且支持同时在多个运行环境中运行build,能全方位的测试你的程序。

下面就介绍下如何将Travis CI与自己在github上的某个repository集成。(这里以我自己的repository https://github.com/huangbowen521/SpringMessageSpike 为例。 )

首先,使Travis CI通过github OAuth认证。

点击https://travis-ci.org/右上角的Sign in with GitHub按钮,输入自己的github账号和密码,并允许Travis CI的认证。

然后,激活GitHub Service Hook。

GitHub给用户提供了一个Service Hook接口,只要用户对host在github上的repository作用了一些action(比如push,pull),就会触发相应的Service Hook。而Travis CI正是基于这个原理来trigger你的build。当你发起一个push操作时,就会trigger Travis CI的服务。

设置方法是访问Travis CIprofile,选择相应的repository打开Service Hook开关。

原文地址:https://www.cnblogs.com/SZLLQ2000/p/5356060.html