Wikimedia Apps/Team/iOS/CI/ServerSetup

Access Server
You will need to access your server, of course. For Wikimedia you can get that information on the Server Access page..

For anyone else, you can just access it directly, use SSH, or the Apple Screen Sharing.app

Configure Server
Once connected to the server, you need to install various tools to enable continuous integration. Most of the following steps can be performed either through screen sharing or ssh.

Xcode

 * Install Xcode from Appstore (Must be done via screen sharing)
 * Install the Xcode Command Line Tools by doing one of the following:
 * Launch Xcode app, go to the "Downloads" preference pane, and download the command line tools
 * Run

OS X Server

 * Install OS X Server via the developer portal or via the app store
 * Enable Remote Access
 * Open the Server App and click on the “Settings” tab
 * Make sure SSH, screen sharing, and remote management are checked


 * Enable access to the server over port “8080”
 * Open the Server App and click on the “Access” tab
 * Click the “+” button at the bottom of the screen and select the “Custom…” option
 * Set the “Name” to Jenkins, the “Port” to 8080, and leave the connections on “All Networks”

Note: AFTER installing OS X Server on the build server, you can also install the OS X Server app on your local machine and connect to it remotely over VPN or while on site.

Install Command Line Tools
The following are used to by the build tools, or used to install build tools.
 * Install Homebrew
 * Install the any executables needed to perform your build that aren't provided by the OS
 * Set up any global configurations needed by the server
 * For example, configuring bundler w/ specific libxml settings for nokogiri

Install Jenkins

 * Install Jenkins via homebrew:
 * Edit the configuration ( Note: If these values don’t exist in the file, add them in the Program Arguments array ` ProgramArguments ` )
 * Open the configuration plist in a text editor
 * Modify the http listening address to listen on all ports
 * Modify the port (`8080` is recommended)


 * Setup as a launch process by running `ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents`
 * Launch Jenkins by running `launchctl load ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist`
 * Test by opening `http://buildmini.corp.wikimedia.org:8080/` in your browser.

Setup a Project
After you complete the above steps you are ready to configure your project for continuous integration (Link)