commit cf5504f3e5df8192cb9c1b944ad67d7c9aa8189a
parent 408d0c678bc066a4bbed33eed42552c86743fdf5
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 23:16:49 +0530
parent 408d0c678bc066a4bbed33eed42552c86743fdf5
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 23:16:49 +0530
Document Jobfile runner support
2 files changed, 36 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md @@ -48,7 +48,8 @@ echo "INSERT INTO project (name) VALUES (\"$name\")" | \ The unique name must be less than 32 bytes. Adjust the database filename as appropriate. -The repository so identified must conform to the following: +The repository so identified must either contain `.config/Jobfile` or +conform to the following: 1. Accessible by git, with the name being the URL filename. 2. `./configure PREFIX=install_prefix` @@ -116,6 +117,25 @@ make and not GNU make, which is the default `make` on some machines. In this example, there are two repositories, `yourrepo1` and `yourrepo2`, which must be represented in the database. +The runner tests `origin/master` unless `branch` is set in the +configuration. If a checked-out repository contains `.config/Jobfile`, +that file is sourced as POSIX shell. It may define lowercase variables +and job functions: + +``` +project=yourrepo1 +triggers="refs/heads/master: build" + +build() { + make +} +``` + +The `triggers` value is a newline-separated list of `ref: job...` lines. +For matching refs, minci executes the named functions in order and +submits each as a job. During execution, `srcdir`, `workdir`, `pkgdir`, +`destdir`, and `target` are set for the job. + Ideally, the runner should be executed daily by `cron`: ``` @@ -152,7 +172,9 @@ posting reports. It features a dashboard "index" view showing the most recent reports grouped by project and generating machine. This gives a quick look at -what systems currently work and don't work. +what systems currently work and don't work. Jobfile submissions are +shown as runs containing one or more named jobs, optionally with artifact +links. It also allows for browsing by project, date, or seeing the individaul report log, including full failure logs.
diff --git a/minci.example b/minci.example @@ -21,3 +21,15 @@ server = https://kristaps.bsd.lv/cgi-bin/minci.cgi # correspond to a known repository in the server. #repo = https://github.com/foobar/baz.git + +# By default, minci tests origin/master. Override this for repositories +# whose integration branch has another name. + +#branch = main + +# If a repository contains .config/Jobfile, minci runs matching jobs from +# that file instead of the configure/make/regress/install/distcheck sequence. +# A different file may be named here. + +#jobfile = /etc/minci/Jobfile +#target = native
: nply/minci