SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы
НазадМетки: buildbot
The first necessary step is to create a virtualenv for our master. We will also use a separate directory to demonstrate the distinction between a master and worker:
mkdir -p ~/tmp/bb-master cd ~/tmp/bb-master
On Python 2:
virtualenv --no-site-packages sandbox source sandbox/bin/activate
On Python 3:
python3 -m venv sandbox source sandbox/bin/activate
Now that we are ready, we need to install buildbot:
pip install --upgrade pip pip install 'buildbot[bundle]'
Now that buildbot is installed, it’s time to create the master:
buildbot create-master master
Buildbot’s activity is controlled by a configuration file. We will use the sample configuration file unchanged:
mv master/master.cfg.sample master/master.cfg
Finally, start the master:
buildbot start master
You will now see some log information from the master in this terminal. It should end with lines like these:
2014-11-01 15:52:55+0100 [-] BuildMaster is running The buildmaster appears to have (re)started correctly.
From now on, feel free to visit the web status page running on the port 8010: http://localhost:8010/
Our master now needs (at least) a worker to execute its commands. For that, head on to the next section!