2023-04-07 19:10:28 +08:00
|
|
|
# typed: strict
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class LinuxRunnerSpec < T::Struct
|
|
|
|
const :name, String
|
|
|
|
const :runner, String
|
|
|
|
const :container, T::Hash[Symbol, String]
|
|
|
|
const :workdir, String
|
|
|
|
const :timeout, Integer
|
|
|
|
const :cleanup, T::Boolean
|
2024-08-26 08:10:31 +08:00
|
|
|
prop :testing_formulae, T::Array[String], default: []
|
2023-04-07 19:10:28 +08:00
|
|
|
|
|
|
|
sig {
|
|
|
|
returns({
|
2024-08-26 08:10:31 +08:00
|
|
|
name: String,
|
|
|
|
runner: String,
|
|
|
|
container: T::Hash[Symbol, String],
|
|
|
|
workdir: String,
|
|
|
|
timeout: Integer,
|
|
|
|
cleanup: T::Boolean,
|
|
|
|
testing_formulae: String,
|
2023-04-07 19:10:28 +08:00
|
|
|
})
|
|
|
|
}
|
|
|
|
def to_h
|
|
|
|
{
|
2024-03-07 16:20:20 +00:00
|
|
|
name:,
|
|
|
|
runner:,
|
|
|
|
container:,
|
|
|
|
workdir:,
|
|
|
|
timeout:,
|
|
|
|
cleanup:,
|
2024-08-26 08:10:31 +08:00
|
|
|
testing_formulae: testing_formulae.join(","),
|
2023-04-07 19:10:28 +08:00
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|