1,852
edits
m (Move to Category:Building.) |
(Overhaul page, describe the Buildbot Worker setup more easy.) |
||
Line 1: | Line 1: | ||
GNU Octave uses [https://buildbot.net/ Buildbot] to build and test the current development version on multiple systems in a number of different configurations. | |||
{{Note|The current status of the builds may be found at http://buildbot.octave.org:8010/#/waterfall.}} | {{Note|The current status of the builds may be found at http://buildbot.octave.org:8010/#/waterfall.}} | ||
Line 57: | Line 57: | ||
|} | |} | ||
= | = Setup and run a Buildbot Worker = | ||
Your system may be behind a firewall. It does not have to have a distinct public IP address. | |||
* Contact the [ | To support Octave development and run a Buildbot Worker, you must do the following: | ||
* Contact the [https://octave.discourse.group/c/maintainers/7 Octave Maintainers on Discourse] to let us know that you wish to provide a system to use as a Buildbot Worker. We will give you a <code>WORKERNAME</code> and a '''secret''' <code>PASSWORD</code> to configure your Buildbot Worker. | |||
* Install buildbot. Packages exist for most distributions. See the buildbot docs for other options. You should create a separate user account with no special privileges that will run buildbot. | * Install buildbot. Packages exist for most distributions. See the buildbot docs for other options. You should create a separate user account with no special privileges that will run buildbot. | ||
* Create | * Decide for a <code>BASEDIR</code>. For example, if the home directory for the buildbot user is {{Path|/var/lib/buildbot}} and your <code>WORKERNAME</code> is set to <code>'debian-x86_64'</code> , then <code>BASEDIR</code> might be {{Path|/var/lib/buildbot/worker/debian-x86_64}}. | ||
* Run buildbot on the | * <code>MASTERHOST</code> is <code>buildbot.octave.org</code> and <code>PORT</code> is <code>9989</code>. | ||
* Create the configuration<pre>buildbot-worker create-worker BASEDIR MASTERHOST:PORT WORKERNAME PASSWORD</pre> | |||
* Run buildbot on the worker system, preferably by starting it automatically when your system boots. It should be running with the buildbot user ID. <pre>buildbot-worker start BASEDIR</pre> | |||
You may also want to set up '''ccache''' to work with buildbot (strongly recommended to speed up builds). If you create a directory {{Path|~/buildbot/bin}}, it will be added to the execution PATH when | == ccache == | ||
You may also want to set up '''ccache''' to work with buildbot (strongly recommended to speed up builds). If you create a directory {{Path|~/buildbot/bin}}, it will be added to the execution PATH when the Buildbot Master runs commands on the Buildbot Worker. This directory can have symbolic links like the following: | |||
lrwxrwxrwx 1 buildbot buildbot 15 Aug 26 11:39 gcc -> /usr/bin/ccache | lrwxrwxrwx 1 buildbot buildbot 15 Aug 26 11:39 gcc -> /usr/bin/ccache | ||
Line 74: | Line 80: | ||
They should point to the actual location of ccache if it is not in {{Path|/usr/bin}}. | They should point to the actual location of ccache if it is not in {{Path|/usr/bin}}. | ||
== Space Requirements == | == Space Requirements == | ||
Line 133: | Line 88: | ||
If the directory containing the build and ccache directories doesn't have sufficient space, then these directory names may point to a separate partition that does have enough space available. | If the directory containing the build and ccache directories doesn't have sufficient space, then these directory names may point to a separate partition that does have enough space available. | ||
[[Category:Building]] | [[Category:Building]] |