[appveyor bitbucket buildkite circleci codeship continuousphp docker readthedocs scrutinizer shippable travis] Extracted isBuildStatus test validator (#1767)
This commit is contained in:
@@ -69,6 +69,10 @@ const isFormattedDate = Joi.alternatives().try(
|
||||
|
||||
const isDependencyState = withRegex(/^(\d+ out of date|\d+ deprecated|up to date)$/);
|
||||
|
||||
const isBuildStatus = Joi.equal('building', 'cancelled', 'error', 'expired', 'failed', 'failing', 'no tests',
|
||||
'not built', 'not run', 'passing', 'pending', 'processing', 'queued', 'running',
|
||||
'scheduled', 'skipped', 'stopped', 'success', 'timeout', 'unstable', 'waiting');
|
||||
|
||||
module.exports = {
|
||||
isSemver,
|
||||
isVPlusTripleDottedVersion,
|
||||
@@ -86,5 +90,6 @@ module.exports = {
|
||||
isDecimalPercentage,
|
||||
isFileSize,
|
||||
isFormattedDate,
|
||||
isDependencyState
|
||||
isDependencyState,
|
||||
isBuildStatus,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user