Documentation
¶
Overview ¶
Package ci parses .gitbay/ci.yml, the per-repo build configuration:
jobs:
test:
steps:
- go test ./...
Each job becomes one build per push; each step is a shell command the runner executes with `sh -c`, stopping at the first failure.
Index ¶
Constants ¶
View Source
const ConfigPath = ".gitbay/ci.yml"
ConfigPath is where the build configuration lives in a repository.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cron ¶
type Cron struct {
// contains filtered or unexported fields
}
Cron is a parsed five-field expression: minute, hour, day-of-month, month, day-of-week. Supported per field: "*", N, A-B, */N, A-B/N, and comma lists. Day-of-month and day-of-week combine with OR when both are restricted, per traditional cron.
func ParseCron ¶
ParseCron validates and compiles an expression like "17 11,23 * * *".
func (Cron) Matches ¶
Matches reports whether the expression fires at t (minute precision).
type Job ¶
Source Files
¶
- ci.go
- cron.go
- sched.go
Click to show internal directories.
Click to hide internal directories.