Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/travis/yml/schema/def/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Def
class Cache < Type::Any
register :cache

TYPES = %i(apt bundler cargo ccache cocoapods npm packages pip yarn)
TYPES = %i(apt bundler cargo ccache cocoapods npm packages pip shards yarn)

def define
summary 'Cache settings to speed up the build'
Expand Down
6 changes: 5 additions & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
"cache": {
"$id": "cache",
"title": "Cache",
"description": "Activates caching content that does not often change in order to speed up the build process.\n\nThere are built-in caching strategies for `apt`, `bundler`, `cargo`, `ccache`, `cocoapods`, `npm`, `packages`, `pip`, `yarn`.\nFor other scenarios the generic `directory` option can be used.",
"description": "Activates caching content that does not often change in order to speed up the build process.\n\nThere are built-in caching strategies for `apt`, `bundler`, `cargo`, `ccache`, `cocoapods`, `npm`, `packages`, `pip`, `shards`, `yarn`.\nFor other scenarios the generic `directory` option can be used.",
"anyOf": [
{
"type": "object",
Expand Down Expand Up @@ -352,6 +352,10 @@
"type": "boolean",
"summary": "Use the pip caching strategy"
},
"shards": {
"type": "boolean",
"summary": "Use the shards caching strategy"
},
"yarn": {
"type": "boolean",
"summary": "Use the yarn caching strategy"
Expand Down
4 changes: 4 additions & 0 deletions spec/travis/yml/schema/def/cache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
type: :boolean,
summary: instance_of(String),
},
shards: {
type: :boolean,
summary: instance_of(String),
},
yarn: {
type: :boolean,
summary: instance_of(String),
Expand Down