customize
This commit is contained in:
parent
5a0c94f253
commit
70f28b0823
36
master.cfg
36
master.cfg
@ -64,11 +64,11 @@ c["schedulers"].append(
|
|||||||
name="all",
|
name="all",
|
||||||
change_filter=util.ChangeFilter(branch="main"),
|
change_filter=util.ChangeFilter(branch="main"),
|
||||||
treeStableTimer=None,
|
treeStableTimer=None,
|
||||||
builderNames=["runtests"],
|
builderNames=["runtests", "runtests-gitea"],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
c["schedulers"].append(
|
c["schedulers"].append(
|
||||||
schedulers.ForceScheduler(name="force", builderNames=["runtests"])
|
schedulers.ForceScheduler(name="force", builderNames=["runtests", "runtests-gitea"])
|
||||||
)
|
)
|
||||||
|
|
||||||
####### BUILDERS
|
####### BUILDERS
|
||||||
@ -88,9 +88,22 @@ def codebaseGenerator(chdict):
|
|||||||
|
|
||||||
c["codebaseGenerator"] = codebaseGenerator
|
c["codebaseGenerator"] = codebaseGenerator
|
||||||
|
|
||||||
|
c["builders"] = []
|
||||||
|
|
||||||
|
|
||||||
factory = util.BuildFactory()
|
factory = util.BuildFactory()
|
||||||
# check out the source
|
factory.addStep(
|
||||||
|
steps.Git(
|
||||||
|
repourl="https://gitea.parrrate.ru/PTV/radn-rs.git", mode="incremental"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
factory.addStep(steps.ShellCommand(command=["cargo", "test"]))
|
||||||
|
c["builders"].append(
|
||||||
|
util.BuilderConfig(name="runtests", workernames=["example-worker"], factory=factory)
|
||||||
|
)
|
||||||
|
|
||||||
if GITEA_SECRET:
|
if GITEA_SECRET:
|
||||||
|
factory = util.BuildFactory()
|
||||||
factory.addStep(
|
factory.addStep(
|
||||||
steps.Gitea(
|
steps.Gitea(
|
||||||
repourl="https://gitea.parrrate.ru/PTV/radn-rs.git",
|
repourl="https://gitea.parrrate.ru/PTV/radn-rs.git",
|
||||||
@ -98,19 +111,10 @@ if GITEA_SECRET:
|
|||||||
codebase="radn-rs",
|
codebase="radn-rs",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
else:
|
factory.addStep(steps.ShellCommand(command=["cargo", "test"]))
|
||||||
factory.addStep(
|
c["builders"].append(
|
||||||
steps.Git(
|
util.BuilderConfig(name="runtests-gitea", workernames=["example-worker"], factory=factory)
|
||||||
repourl="https://gitea.parrrate.ru/PTV/radn-rs.git", mode="incremental"
|
|
||||||
)
|
)
|
||||||
)
|
|
||||||
# run the tests (note that this will require that 'trial' is installed)
|
|
||||||
factory.addStep(steps.ShellCommand(command=["cargo", "test"]))
|
|
||||||
|
|
||||||
c["builders"] = []
|
|
||||||
c["builders"].append(
|
|
||||||
util.BuilderConfig(name="runtests", workernames=["example-worker"], factory=factory)
|
|
||||||
)
|
|
||||||
|
|
||||||
####### REPORTER TARGETS
|
####### REPORTER TARGETS
|
||||||
|
|
||||||
@ -150,7 +154,7 @@ if GITEA_SECRET:
|
|||||||
"onlyIncludePushCommit": True,
|
"onlyIncludePushCommit": True,
|
||||||
}
|
}
|
||||||
c["services"].append(
|
c["services"].append(
|
||||||
reporters.GiteaStatusPush("https://example.com", GITEA_SECRET, verbose=True),
|
reporters.GiteaStatusPush("https://gitea.parrrate.ru", GITEA_SECRET, verbose=True),
|
||||||
)
|
)
|
||||||
|
|
||||||
####### DB URL
|
####### DB URL
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
version: '2'
|
version: '2'
|
||||||
|
|
||||||
|
networks:
|
||||||
|
v6d:
|
||||||
|
external: true
|
||||||
|
buildbot-db: {}
|
||||||
|
buildbot-worker: {}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
buildbot:
|
buildbot:
|
||||||
image: "buildbot-master-parrrate"
|
image: "buildbot-master-parrrate"
|
||||||
@ -12,18 +19,23 @@ services:
|
|||||||
- BUILDBOT_WORKER_PORT=9989
|
- BUILDBOT_WORKER_PORT=9989
|
||||||
- BUILDBOT_WEB_URL=http://192.168.1.3:8010/
|
- BUILDBOT_WEB_URL=http://192.168.1.3:8010/
|
||||||
- BUILDBOT_WEB_PORT=tcp:port=8010
|
- BUILDBOT_WEB_PORT=tcp:port=8010
|
||||||
links:
|
|
||||||
- db
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
ports:
|
ports:
|
||||||
- "8010:8010"
|
- "8010:8010"
|
||||||
|
networks:
|
||||||
|
- v6d
|
||||||
|
- buildbot-db
|
||||||
|
- buildbot-worker
|
||||||
|
|
||||||
db:
|
db:
|
||||||
env_file:
|
env_file:
|
||||||
- db.env
|
- db.env
|
||||||
image: "postgres:9.4"
|
image: "postgres:9.4"
|
||||||
expose:
|
expose:
|
||||||
- 5432
|
- 5432
|
||||||
|
networks:
|
||||||
|
- buildbot-db
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
image: "buildbot-worker-parrrate-rust"
|
image: "buildbot-worker-parrrate-rust"
|
||||||
@ -34,6 +46,5 @@ services:
|
|||||||
WORKERNAME: example-worker
|
WORKERNAME: example-worker
|
||||||
WORKERPASS: pass
|
WORKERPASS: pass
|
||||||
WORKER_ENVIRONMENT_BLACKLIST: DOCKER_BUILDBOT* BUILDBOT_ENV_* BUILDBOT_1* WORKER_ENVIRONMENT_BLACKLIST
|
WORKER_ENVIRONMENT_BLACKLIST: DOCKER_BUILDBOT* BUILDBOT_ENV_* BUILDBOT_1* WORKER_ENVIRONMENT_BLACKLIST
|
||||||
|
networks:
|
||||||
links:
|
- buildbot-worker
|
||||||
- buildbot
|
|
||||||
|
Loading…
Reference in New Issue
Block a user