def __getBasePipeline(): checkSpaces = common.shellSequence(commands=[ common.shellArg(command=util.Interpolate( "(! grep -rnP '\t' modules assemblies pom.xml etc --include=pom.xml)" ), haltOnFailure=False, logname='Tab Check'), common.shellArg(command=util.Interpolate( "(! grep -rn ' $' modules assemblies pom.xml etc --include=pom.xml)" ), haltOnFailure=False, logname='End Of Line Space Check') ], workdir="build/docs/guides", name="Formatting checks") reports = [ 'site', 'site:stage', '-Daggregate=true', '-Dcheckstyle.skip=true', '-P', 'none,!frontend' ] site = common.getBuild(override=reports, name="Build site report") f_build = util.BuildFactory() f_build.addStep(common.getPreflightChecks()) f_build.addStep(common.getClone()) f_build.addStep(common.getWorkerPrep()) f_build.addStep(common.setTimezone()) f_build.addStep(common.setLocale()) f_build.addStep(common.getBuild()) f_build.addStep(checkSpaces) f_build.addStep(site) return f_build
def __getBasePipeline(): f_build = util.BuildFactory() f_build.addStep(common.getPreflightChecks()) f_build.addStep(common.getClone()) f_build.addStep(common.setLocale()) f_build.addStep(common.setTimezone()) return f_build
def __getBasePipeline(): npm_install = common.shellSequence(commands=[ common.shellArg(command=['npm', 'install'], logname='npm_install'), ], workdir="build/docs/guides", name="Running npm install", haltOnFailure=True) npmCheck = common.shellSequence( commands=[ common.shellArg(command=['npm', 'test'], haltOnFailure=False, logname='markdown-cli'), ], workdir="build/docs/guides", name="Check Markdown doc formatting with markdown-cli", haltOnFailure=False) pip_install = common.shellSequence(commands=[ common.shellArg(command=[ 'python3', '-m', 'pip', 'install', '-r', 'requirements.txt' ], haltOnFailure=False, logname='markdown-cli'), ], workdir="build/docs/guides", name="Running pip install", haltOnFailure=True) build = common.shellCommand(command=['./.style-and-markdown-build.sh'], name="Running tests and building docs", env={ "LC_ALL": "en_US.UTF-8", "LANG": "en_US.UTF-8", "OC_CTYPE": "en_US.UTF-8", "PATH": "/builder/.local/bin:${PATH}" }, haltOnFailure=False, flunkOnFailure=True) markdown = GenerateMarkdownCommands(command='ls -d */', name="Determining available docs", workdir="build/docs/guides", haltOnFailure=True, flunkOnFailure=True) f_build = util.BuildFactory() f_build.addStep(common.getClone()) f_build.addStep(npm_install) f_build.addStep(npmCheck) f_build.addStep(pip_install) f_build.addStep(build) f_build.addStep(markdown) return f_build
def __getBasePipeline(): f_build = util.BuildFactory() f_build.addStep(common.getClone()) f_build.addStep(generateDBTestStep("maria", "3307")) f_build.addStep(generateDBUpgradeStep("maria", "3307")) f_build.addStep(generateDBTestStep("mysql5.6", "3308")) f_build.addStep(generateDBUpgradeStep("mysql5.6", "3308")) f_build.addStep(generateDBTestStep("mysql5.7", "3309")) f_build.addStep(generateDBUpgradeStep("mysql5.7", "3309")) f_build.addStep(common.getClean()) return f_build