<commit_before>c = BuildmasterConfig = {}


####### BUILDSLAVES
from buildbot.buildslave import BuildSlave

c['slaves'] = []
c['slaves'].append(BuildSlave("aristotle-slave", "XXXXXX"))
c['slaves'].append(BuildSlave("cicero-slave", "XXXXXX"))
c['slaves'].append(BuildSlave("zera", "XXXXXX"))


c['slavePortnum'] = 9989


####### CHANGESOURCES
from buildbot.changes.gitpoller import GitPoller

c['change_source'] = []
c['change_source'].append(GitPoller(
                'git://github.com/opencog/opencog.git',
                workdir = 'gitpoller-workdir',
                branches = ['master'],
                pollinterval = 10*60,
                project = 'opencog_master'
                ))
c['change_source'].append(GitPoller(
                'git://github.com/opencog/unity3d-opencog-game.git',
                workdir = 'gitpoller-workdir-unity3d-opencog-game',
                branches = ['master'],
                pollinterval = 10*60,
                project = 'unity3d_game'
                ))


####### SCHEDULERS
# TODO: add a scheduler for daily build of code documentation for all repo and
# update the site links.
from buildbot.schedulers.basic import SingleBranchScheduler
from buildbot.schedulers.forcesched import ForceScheduler
from buildbot.changes import filter

c['schedulers'] = []
'''c['schedulers'].append(SingleBranchScheduler(
                name = "opencog_master_precise",
                change_filter = filter.ChangeFilter(project='opencog_master'),
                treeStableTimer = 5*60,
                builderNames = ["opencog_master_precise"]
                ))'''
c['schedulers'].append(SingleBranchScheduler(
                name = "opencog_master_trusty",
                change_filter = filter.ChangeFilter(project='opencog_master'),
                treeStableTimer = 2*60,
                builderNames = ["opencog_master_trusty"]
                ))
c['schedulers'].append(SingleBranchScheduler(
                name = "unity_3d",
                change_filter = filter.ChangeFilter(project='unity3d_game'),
                treeStableTimer = 5*60,
                builderNames = ["unity3d_game"]
                ))
c['schedulers'].append(ForceScheduler(
                name = "force",
                builderNames = ["opencog_master_trusty",
                                "unity3d_game"]
                ))



####### BUILDERS
from buildbot.process.factory import BuildFactory
from buildbot.steps.source.git import Git
from buildbot.steps.shell import ShellCommand, Configure, Compile, Test
from buildbot.process.properties import Property, Interpolate
import os.path

cmake_build_dir = "build"

'''
# Builder for OpenCog Master Branch Build and Test on Ubuntu 12.04
opencog_master_precise = BuildFactory()
opencog_master_precise.workdir = "source"

opencog_master_precise.addStep(Git(
                repourl = 'git://github.com/opencog/opencog.git',
                mode = 'full',
                branch = 'master'
                ))
# This maybe enabled for another builder for integration testing or ...
#opencog_master_precise.addStep(ShellCommand(
#           description=["copy","test config"],
#           command=["cp", "../../opencog-test.conf.example", "lib/opencog-test.conf"]
#           ))
opencog_master_precise.addStep(ShellCommand(
                command = ["rm","-rf", cmake_build_dir],
                description = ["removing", "existing", "build", "directory"],
                descriptionDone = ["removed","existing", "build", "directory"]
                ))
opencog_master_precise.addStep(ShellCommand(
                command = ["mkdir","-p", cmake_build_dir],
                description = ["making", "build", "directory"],
                descriptionDone = ["made", "build", "directory"]
                ))
opencog_master_precise.addStep(Configure(
                workdir = os.path.join("source", cmake_build_dir),
                command = ["cmake", ".."],
                description = ["configuring", "build", "using", "cmake"],
                descriptionDone = ["configured", "for", "build", "and", "test"]
                ))
opencog_master_precise.addStep(Compile(
                workdir = os.path.join("source", cmake_build_dir),
                command = ["make", "-j10"],
                description = ["making", "all"],
                descriptionDone = ["make", "all"]
                ))
opencog_master_precise.addStep(Compile(
                workdir = os.path.join("source", cmake_build_dir),
                command = ["make", "-j10" , "examples"],
                description = ["making", "examples"],
                descriptionDone = ["make", "examples"]
                ))
opencog_master_precise.addStep(Compile(https://raw.githubusercontent.com/AmeBel/docker/buildbot-update/buildbot/master/master.cfg
                workdir = os.path.join("source", cmake_build_dir),
                command = ["make", "-j10" , "tests"],
                description = ["making", "tests"],
                descriptionDone = ["make", "tests"]
                ))
opencog_master_precise.addStep(Test(
                workdir = os.path.join("source", cmake_build_dir),
                command = ["make", "test"],
                description = ["running", "tests"],
                descriptionDone = ["run", "tests"],
                logfiles = {"testlog":
                                {"filename":
                                    "tests/Testing/Temporary/LastTest.log.tmp"}}
                ))
'''


# Builder for OpenCog Master Branch Build and Test on Ubuntu 14.04
opencog_master_trusty = BuildFactory()
opencog_master_trusty.workdir = "source"

opencog_master_trusty.addStep(Git(
                repourl = 'git://github.com/opencog/opencog.git', 
                mode = 'full',
                branch = 'master'
                ))
opencog_master_trusty.addStep(ShellCommand(
                command = ["rm","-rf", cmake_build_dir],
                description = ["removing", "existing", "build", "directory"],
                descriptionDone = ["removed","existing", "build", "directory"]
                ))
opencog_master_trusty.addStep(ShellCommand(
                command = ["mkdir","-p", cmake_build_dir],
                description = ["making", "build", "directory"],
                descriptionDone = ["made", "build", "directory"]<commit_msg>double timeout time for a build step<commit_after>c = BuildmasterConfig = {}


####### BUILDSLAVES
from buildbot.buildslave import BuildSlave

c['slaves'] = []
c['slaves'].append(BuildSlave("aristotle-slave", "XXXXXX"))
c['slaves'].append(BuildSlave("cicero-slave", "XXXXXX"))
c['slaves'].append(BuildSlave("zera", "XXXXXX"))


c['slavePortnum'] = 9989


####### CHANGESOURCES
from buildbot.changes.gitpoller import GitPoller

c['change_source'] = []
c['change_source'].append(GitPoller(
                'git://github.com/opencog/opencog.git',
                workdir = 'gitpoller-workdir',
                branches = ['master'],
                pollinterval = 10*60,
                project = 'opencog_master'
                ))
c['change_source'].append(GitPoller(
                'git://github.com/opencog/unity3d-opencog-game.git',
                workdir = 'gitpoller-workdir-unity3d-opencog-game',
                branches = ['master'],
                pollinterval = 10*60,
                project = 'unity3d_game'
                ))


####### SCHEDULERS
# TODO: add a scheduler for daily build of code documentation for all repo and
# update the site links.
from buildbot.schedulers.basic import SingleBranchScheduler
from buildbot.schedulers.forcesched import ForceScheduler
from buildbot.changes import filter

c['schedulers'] = []
'''c['schedulers'].append(SingleBranchScheduler(
                name = "opencog_master_precise",
                change_filter = filter.ChangeFilter(project='opencog_master'),
                treeStableTimer = 5*60,
                builderNames = ["opencog_master_precise"]
                ))'''
c['schedulers'].append(SingleBranchScheduler(
                name = "opencog_master_trusty",
                change_filter = filter.ChangeFilter(project='opencog_master'),
                treeStableTimer = 2*60,
                builderNames = ["opencog_master_trusty"]
                ))
c['schedulers'].append(SingleBranchScheduler(
                name = "unity_3d",
                change_filter = filter.ChangeFilter(project='unity3d_game'),
                treeStableTimer = 5*60,
                builderNames = ["unity3d_game"]
                ))
c['schedulers'].append(ForceScheduler(
                name = "force",
                builderNames = ["opencog_master_trusty",
                                "unity3d_game"]
                ))



####### BUILDERS
from buildbot.process.factory import BuildFactory
from buildbot.steps.source.git import Git
from buildbot.steps.shell import ShellCommand, Configure, Compile, Test
from buildbot.process.properties import Property, Interpolate
import os.path

cmake_build_dir = "build"

'''
# Builder for OpenCog Master Branch Build and Test on Ubuntu 12.04
opencog_master_precise = BuildFactory()
opencog_master_precise.workdir = "source"

opencog_master_precise.addStep(Git(
                repourl = 'git://github.com/opencog/opencog.git',
                mode = 'full',
                branch = 'master'
                ))
# This maybe enabled for another builder for integration testing or ...
#opencog_master_precise.addStep(ShellCommand(
#           description=["copy","test config"],
#           command=["cp", "../../opencog-test.conf.example", "lib/opencog-test.conf"]
#           ))
opencog_master_precise.addStep(ShellCommand(
                command = ["rm","-rf", cmake_build_dir],
                description = ["removing", "existing", "build", "directory"],
                descriptionDone = ["removed","existing", "build", "directory"]
                ))
opencog_master_precise.addStep(ShellCommand(
                command = ["mkdir","-p", cmake_build_dir],
                description = ["making", "build", "directory"],
                descriptionDone = ["made", "build", "directory"]
                ))
opencog_master_precise.addStep(Configure(
                workdir = os.path.join("source", cmake_build_dir),
                command = ["cmake", ".."],
                description = ["configuring", "build", "using", "cmake"],
                descriptionDone = ["configured", "for", "build", "and", "test"]
                ))
opencog_master_precise.addStep(Compile(
                workdir = os.path.join("source", cmake_build_dir),
                command = ["make", "-j10"],
                description = ["making", "all"],
                descriptionDone = ["make", "all"]
                ))
opencog_master_precise.addStep(Compile(
                workdir = os.path.join("source", cmake_build_dir),
                command = ["make", "-j10" , "examples"],
                description = ["making", "examples"],
                descriptionDone = ["make", "examples"]
                ))
opencog_master_precise.addStep(Compile(https://raw.githubusercontent.com/AmeBel/docker/buildbot-update/buildbot/master/master.cfg
                workdir = os.path.join("source", cmake_build_dir),
                command = ["make", "-j10" , "tests"],
                description = ["making", "tests"],
                descriptionDone = ["make", "tests"]
                ))
opencog_master_precise.addStep(Test(
                workdir = os.path.join("source", cmake_build_dir),
                command = ["make", "test"],
                description = ["running", "tests"],
                descriptionDone = ["run", "tests"],
                logfiles = {"testlog":
                                {"filename":
                                    "tests/Testing/Temporary/LastTest.log.tmp"}}
                ))
'''


# Builder for OpenCog Master Branch Build and Test on Ubuntu 14.04
opencog_master_trusty = BuildFactory()
opencog_master_trusty.workdir = "source"
opencog_master_trusty.timeout = 2400

opencog_master_trusty.addStep(Git(
                repourl = 'git://github.com/opencog/opencog.git', 
                mode = 'full',
                branch = 'master'
                ))
opencog_master_trusty.addStep(ShellCommand(
                command = ["rm","-rf", cmake_build_dir],
                description = ["removing", "existing", "build", "directory"],
                descriptionDone = ["removed","existing", "build", "directory"]
                ))
opencog_master_trusty.addStep(ShellCommand(
                command = ["mkdir","-p", cmake_build_dir],
                description = ["making", "build", "directory"],
                descriptionDone = ["made", "build", "directory"]
{'fraction_non_alphanumeric': 0.1358994501178319, 'fraction_numerical': 0.006912804399057345, 'mean_word_length': 2.217336365933788, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2329397', 'n_tokens_mistral': 3789, 'n_tokens_neox': 3506, 'n_words': 641}