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
4 changes: 4 additions & 0 deletions lib/travis/yml/schema/def/lang/php.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'travis/yml/schema/def/lang/jdks'

module Travis
module Yml
Expand All @@ -11,7 +12,10 @@ def define
title 'PHP'
summary 'PHP language support'
see 'Building a PHP Project': 'https://docs.travis-ci.com/user/languages/php/'

matrix :php
matrix :jdk, to: :jdks

map :composer_args, to: :str
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,25 @@ <h2 id="keys">Keys</h2>

<ul>
<li><p><code>php</code> &mdash; (type: sequence of string, or string, <a href="/matrix">matrix expand key</a>)</p></li>
<li><p><code>jdk</code> &mdash; JDK versions (type: sequence of string, or string, <a href="/matrix">matrix expand key</a>)</p></li>
<li><p><code>composer_args</code> &mdash; (type: string)</p></li>
</ul>

<h2 id="examples">Examples</h2>

<pre><code class="yaml">php:
- string
jdk:
- string
composer_args: string
</code></pre>

<pre><code class="yaml">php: string

</code></pre>

<pre><code class="yaml">jdk: string

</code></pre>

</div>
Expand Down
10 changes: 9 additions & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8454,6 +8454,14 @@
]
}
},
"jdk": {
"type": "string",
"only": {
"language": [
"php"
]
}
},
"composer_args": {
"type": "string",
"only": {
Expand Down Expand Up @@ -10644,4 +10652,4 @@
"smalltalk_config",
"smalltalk_vm"
]
}
}
11 changes: 11 additions & 0 deletions spec/travis/yml/schema/def/lang/php_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@
]
}
},
jdk: {
'$ref': '#/definitions/type/jdks',
flags: [
:expand
],
only: {
language: [
'php'
]
},
},
composer_args: {
type: :string,
only: {
Expand Down