travis ci

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

 

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

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

下面就介绍下如何将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的认证。ui

而后,激活GitHub Service Hook。code

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

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

相关文章
相关标签/搜索