Separate configs
This commit is contained in:
0
config/builders/__init__.py
Normal file
0
config/builders/__init__.py
Normal file
BIN
config/builders/__pycache__/__init__.cpython-36.pyc
Normal file
BIN
config/builders/__pycache__/__init__.cpython-36.pyc
Normal file
Binary file not shown.
BIN
config/builders/__pycache__/ads1115.cpython-36.pyc
Normal file
BIN
config/builders/__pycache__/ads1115.cpython-36.pyc
Normal file
Binary file not shown.
BIN
config/builders/__pycache__/bicycle_statistics.cpython-36.pyc
Normal file
BIN
config/builders/__pycache__/bicycle_statistics.cpython-36.pyc
Normal file
Binary file not shown.
BIN
config/builders/__pycache__/gpio_ftdi.cpython-36.pyc
Normal file
BIN
config/builders/__pycache__/gpio_ftdi.cpython-36.pyc
Normal file
Binary file not shown.
BIN
config/builders/__pycache__/gpio_sys.cpython-36.pyc
Normal file
BIN
config/builders/__pycache__/gpio_sys.cpython-36.pyc
Normal file
Binary file not shown.
BIN
config/builders/__pycache__/i2c_bb.cpython-36.pyc
Normal file
BIN
config/builders/__pycache__/i2c_bb.cpython-36.pyc
Normal file
Binary file not shown.
BIN
config/builders/__pycache__/test_c.cpython-36.pyc
Normal file
BIN
config/builders/__pycache__/test_c.cpython-36.pyc
Normal file
Binary file not shown.
BIN
config/builders/__pycache__/voltage_app.cpython-36.pyc
Normal file
BIN
config/builders/__pycache__/voltage_app.cpython-36.pyc
Normal file
Binary file not shown.
24
config/builders/ads1115.py
Normal file
24
config/builders/ads1115.py
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
|
19
config/builders/bicycle_statistics.py
Normal file
19
config/builders/bicycle_statistics.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from buildbot.plugins import steps, util
|
||||
|
||||
factory = util.BuildFactory()
|
||||
factory.addStep(steps.ShellCommand(command=['git', 'clone', '--branch', 'master',
|
||||
'https://git.blackfinn.de/docker/bicycle-statistics.git']))
|
||||
factory.addStep(steps.ShellCommand(command=['docker', 'build', '--no-cache', '-t', 'bicycle-statistics',
|
||||
'./bicycle-statistics']))
|
||||
factory.addStep(steps.ShellCommand(command=['docker', 'rm', '-f', 'bicycle-statistics']))
|
||||
factory.addStep(steps.ShellCommand(command=['docker', 'run', '-d', '-v', '/srv/nextcloud/data/tkl/files/Bicycle:/bs_in',
|
||||
'-v', '/srv/bicycle.blackfinn.de/data:/bs_out', '--name',
|
||||
'bicycle-statistics', '--restart', 'always', 'bicycle-statistics']))
|
||||
|
||||
builder = util.BuilderConfig(name='bicycle_statistics', workernames=["buildbot-cpp-worker"],
|
||||
factory=factory)
|
||||
|
||||
def append(builders):
|
||||
builders.append(builder)
|
||||
return builders
|
||||
|
18
config/builders/gpio_ftdi.py
Normal file
18
config/builders/gpio_ftdi.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from buildbot.plugins import steps, util
|
||||
|
||||
factory = util.BuildFactory()
|
||||
factory.addStep(steps.Git(repourl='https://git.blackfinn.de/adc_gpio_i2c/gpio_ftdi.git', mode='full'))
|
||||
factory.addStep(steps.ShellCommand(command=['make', 'check', '-j8']))
|
||||
factory.addStep(steps.Compile(command=['make', 'all', '-j8']))
|
||||
factory.addStep(steps.ShellCommand(command=['make', 'build_unit_test', '-j8']))
|
||||
factory.addStep(steps.ShellCommand(command=['make', 'exec_unit_test']))
|
||||
factory.addStep(steps.ShellCommand(command='make clean && make coverage'))
|
||||
|
||||
|
||||
builder = util.BuilderConfig(name='gpio_ftdi', workernames=["buildbot-cpp-worker"],
|
||||
factory=factory)
|
||||
|
||||
def append(builders):
|
||||
builders.append(builder)
|
||||
return builders
|
||||
|
17
config/builders/gpio_sys.py
Normal file
17
config/builders/gpio_sys.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from buildbot.plugins import steps, util
|
||||
|
||||
factory = util.BuildFactory()
|
||||
factory.addStep(steps.Git(repourl='https://git.blackfinn.de/adc_gpio_i2c/gpio_sys.git', mode='full'))
|
||||
factory.addStep(steps.ShellCommand(command=['make', 'check', '-j8']))
|
||||
factory.addStep(steps.Compile(command=['make', 'all', '-j8']))
|
||||
factory.addStep(steps.ShellCommand(command=['make', 'build_unit_test', '-j8']))
|
||||
factory.addStep(steps.ShellCommand(command=['make', 'exec_unit_test']))
|
||||
factory.addStep(steps.ShellCommand(command='make clean && make coverage'))
|
||||
|
||||
builder = util.BuilderConfig(name='gpio_sys', workernames=["buildbot-cpp-worker"],
|
||||
factory=factory)
|
||||
|
||||
def append(builders):
|
||||
builders.append(builder)
|
||||
return builders
|
||||
|
17
config/builders/i2c_bb.py
Normal file
17
config/builders/i2c_bb.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from buildbot.plugins import steps, util
|
||||
|
||||
factory = util.BuildFactory()
|
||||
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', 'check', '-j8']))
|
||||
factory.addStep(steps.ShellCommand(command=['make', '-C', 'i2c_bb', 'all', '-j8', 'EXTRA_INC=/worker/include']))
|
||||
factory.addStep(steps.ShellCommand(command=['make', '-C', 'i2c_bb', 'exec_unit_test', '-j8', 'EXTRA_INC=/worker/include']))
|
||||
factory.addStep(steps.ShellCommand(command='make -C i2c_bb clean && make -C i2c_bb coverage -j8 EXTRA_INC=/worker/include'))
|
||||
|
||||
builder = util.BuilderConfig(name='i2c_bb', workernames=["buildbot-cpp-worker"],
|
||||
factory=factory)
|
||||
|
||||
def append(builders):
|
||||
builders.append(builder)
|
||||
return builders
|
||||
|
17
config/builders/test_c.py
Normal file
17
config/builders/test_c.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from buildbot.plugins import steps, util
|
||||
|
||||
factory = util.BuildFactory()
|
||||
factory.addStep(steps.Git(repourl='https://git.blackfinn.de/tkl/test.c.git', mode='full'))
|
||||
factory.addStep(steps.ShellCommand(command=['make', 'check', '-j8']))
|
||||
factory.addStep(steps.Compile(command=['make', 'all', '-j8']))
|
||||
factory.addStep(steps.ShellCommand(command=['make', 'build_unit_test', '-j8']))
|
||||
factory.addStep(steps.ShellCommand(command=['make', 'exec_unit_test']))
|
||||
factory.addStep(steps.ShellCommand(command='make clean && make coverage'))
|
||||
|
||||
builder = util.BuilderConfig(name='test.c', workernames=["buildbot-cpp-worker"],
|
||||
factory=factory)
|
||||
|
||||
def append(builders):
|
||||
builders.append(builder)
|
||||
return builders
|
||||
|
29
config/builders/voltage_app.py
Normal file
29
config/builders/voltage_app.py
Normal file
@@ -0,0 +1,29 @@
|
||||
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']))
|
||||
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', 'install', '-j8', 'PREFIX=/worker']))
|
||||
|
||||
# DUT
|
||||
factory.addStep(steps.ShellCommand(command=['git', 'clone', '--branch', 'master',
|
||||
'https://git.blackfinn.de/adc_gpio_i2c/voltage_app.git']))
|
||||
factory.addStep(steps.ShellCommand(command=['make', '-C', 'voltage_app', 'check', '-j8']))
|
||||
factory.addStep(steps.ShellCommand(command=['make', '-C', 'voltage_app', 'all', '-j8',
|
||||
'EXTRA_INC=/worker/include', 'EXTRA_LIB_DIR=/worker/lib']))
|
||||
#factory.addStep(steps.ShellCommand(command=['make', '-C', 'voltage_app', 'build_unit_test', '-j8']))
|
||||
#factory.addStep(steps.ShellCommand(command=['make', '-C', 'voltage_app', 'exec_unit_test']))
|
||||
#factory.addStep(steps.ShellCommand(command='make -C voltage_app clean && make -C voltage_app coverage'))
|
||||
|
||||
builder = util.BuilderConfig(name='voltage_app', workernames=["buildbot-cpp-worker"],
|
||||
factory=factory)
|
||||
|
||||
def append(builders):
|
||||
builders.append(builder)
|
||||
return builders
|
||||
|
Reference in New Issue
Block a user