diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-02-14 09:36:24 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-02-14 09:36:24 +0000 |
commit | 90a93ee16d3374309dd36842f75a034706ce40e8 (patch) | |
tree | 768da9da87f00470b33264f44425508db79dd8a6 /continuous_integration/mac_os_x_yosemite_setup.mdwn | |
parent | b791a470cb8156fbd00b3e8a738a188b4fe997d4 (diff) | |
download | netsurf-wiki-90a93ee16d3374309dd36842f75a034706ce40e8.tar.gz netsurf-wiki-90a93ee16d3374309dd36842f75a034706ce40e8.tar.bz2 |
move CI section to subdirectory
Diffstat (limited to 'continuous_integration/mac_os_x_yosemite_setup.mdwn')
-rw-r--r-- | continuous_integration/mac_os_x_yosemite_setup.mdwn | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/continuous_integration/mac_os_x_yosemite_setup.mdwn b/continuous_integration/mac_os_x_yosemite_setup.mdwn new file mode 100644 index 0000000..8acf882 --- /dev/null +++ b/continuous_integration/mac_os_x_yosemite_setup.mdwn @@ -0,0 +1,77 @@ +[[!meta title="Continuous Integration Mac OS X Yosemite Setup"]] +[[!meta author="Kyllikki"]] +[[!meta date="2016-02-06T14:27:38Z"]] + + +[[!toc]] Install yosemite + +set system name in system preferences-\>sharing + +Update system in app store + +Install Xcode from app store + +install xcode commandline tools + +`xcode-select --install` + +accept licence + +`xcodebuild -license` + +install java + +install [[https://www.macports.org/install.php Mac Ports|https///www.macports.org/install.php_mac_ports]] + +Update ports database ready for use + +`sudo port -v selfupdate` +`sudo port upgrade outdated` + +install required packages + +`sudo port install git ccache expat openssl curl libjpeg-turbo libpng p5-html-parser screen bison pkgconfig` + +create jenkins user + +enable ssh login for jenkins user in system +preferences-\>sharing-\>remote login + +Add node on jenkins master CI instance. + +`Name cislave14` +`Description Mac os X yosemite build slave` +`# of executors 2` +`Remote FS root /Users/jenkins/jenkins` +`Labels x86_64-apple-darwin14.5.0` + +take note of secret and slave url for use in next steps. + +As jenkins user: + +create jenkins workspace directory + +`mkdir jenkins` + +download slave jar + +`curl -o slave.jar `[`http://ci.netsurf-browser.org/jenkins/jnlpJars/slave.jar`](http://ci.netsurf-browser.org/jenkins/jnlpJars/slave.jar) + +create jenkins slave script + +`cat << EOF > jenkins-slave.sh` +`#!/bin/sh` + +`java -Djava.awt.headless=true -jar slave.jar -jnlpUrl `[`http://ci.netsurf-browser.org/jenkins/computer/cislave7/slave-agent.jnlp`](http://ci.netsurf-browser.org/jenkins/computer/cislave7/slave-agent.jnlp)` -secret 1234` +`EOF` +`chmod a+x jenkins-slave.sh` + +create ssh keypair (accept defaults - no password) + +`ssh-keygen -t rsa -C "netsurf@cislave8.netsurf-browser.org"` + +copy .ssh/id\_rsa.pub from slave to jenkins master node and append to +/home/netsurf/.ssh/authorized\_keys + +start slave daemon in screen + |