Build iOS Continuous Integration Platform (iii) CI Server and automated deployment

Source: Internet
Author: User
Tags hosting root directory

CI Server

Written here, for iOS developers, need to be ready:

A relatively easy to get source code warehouse (including source codes)

A set of automated build scripts

A series of executable tests around builds

Next, a CI server is needed to trigger the build and monitor the test results according to the source code changes. Currently, the industry is more popular, support for iOS built CI server has Travis Ci and Jenkins

Travis CI

Travis ci "20" is a free cloud service platform, the main function is to provide free CI services for the open source community, for business users can use the Travis Pro version, which basically support all the current mainstream language, object-c naturally also in it. However, Travis CI only supports GitHub and greatly restricts its application scenarios. But also because it only supports GitHub, its integration with the GitHub to achieve the ultimate smooth, easy to use, therefore, for the GitHub as a code hosting platform for the project, Travis CI can be made as the first choice.

Using Travis CI requires a simple 2 step to add a CI server to your hosting project in GitHub

First step: Create the Travis CI profile ". travis.yml" in the root directory of the project, specify the language, environment requirements, build scripts, etc. in the configuration file

Language:objective-c
Before_install:
     -Brew Update
     -brew install Xctool
script:xctool-project Lighterviewcontrollerdemo.xcodeproj-scheme 
lighterviewcontrollerdemo-sdkiphonesimulator  test
  

Step two: Use the GitHub account to login Travis CI, open the automatic build function of the project in the repositories of the account, this setting will open the service Hook of repository CI in the Travis of this project on GitHub

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.