25 lines
1.1 KiB
Python
25 lines
1.1 KiB
Python
|
from buildbot.plugins import steps, util
|
||
|
|
||
|
factory = util.BuildFactory()
|
||
|
|
||
|
# dependencies
|
||
|
factory.addStep(steps.ShellCommand(command=['git', 'clone', '--branch', 'master',
|
||
|
'https://git.blackfinn.de/adc_gpio_i2c/i2c_bb.git']))
|
||
|
factory.addStep(steps.ShellCommand(command=['make', '-C', 'i2c_bb', 'install', '-j8', 'PREFIX=/worker']))
|
||
|
|
||
|
# DUT
|
||
|
factory.addStep(steps.ShellCommand(command=['git', 'clone', '--branch', 'master',
|
||
|
'https://git.blackfinn.de/adc_gpio_i2c/ads1115.git']))
|
||
|
factory.addStep(steps.ShellCommand(command=['make', '-C', 'ads1115', 'check', '-j8']))
|
||
|
factory.addStep(steps.ShellCommand(command=['make', '-C', 'ads1115', 'all', '-j8', 'EXTRA_INC=/worker/include']))
|
||
|
factory.addStep(steps.ShellCommand(command=['make', '-C', 'ads1115', 'exec_unit_test', '-j8', 'EXTRA_INC=/worker/include']))
|
||
|
factory.addStep(steps.ShellCommand(command='make -C ads1115 clean && make -C ads1115 coverage -j8 EXTRA_INC=/worker/include'))
|
||
|
|
||
|
builder = util.BuilderConfig(name='ads1115', workernames=["buildbot-cpp-worker"],
|
||
|
factory=factory)
|
||
|
|
||
|
def append(builders):
|
||
|
builders.append(builder)
|
||
|
return builders
|
||
|
|