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