Commit 86d71253 authored by Eloy Lafuente's avatar Eloy Lafuente
Browse files

Merge branch '38_release' into 'master'

version: Add Moodle 3.8 version information

See merge request integration/nightlyjobs!11
parents 436995a6 b9910c9b
package org.moodle.ci.versions;
class M38 extends Version {
M38() {
this.name = "38"
this.defaultBranch = "MOODLE_38_STABLE"
this.supportedPHPVersions = [
"7.1",
"7.2",
"7.3",
]
this.supportedDatabases = [
"pgsql",
"mysqli",
"mariadb",
"sqlsrv",
"oci",
]
}
}
package test.org.moodle.ci.versions;
import spock.lang.Specification
class M38 extends Specification {
def "getDefaultBranch returns MOODLE_38_STABLE"() {
given:
def moodleVersion = new org.moodle.ci.versions.M38()
when:
def output = moodleVersion.getDefaultBranch()
then:
assert output == "MOODLE_38_STABLE"
}
def "defaultBranch returns MOODLE_38_STABLE"() {
given:
def moodleVersion = new org.moodle.ci.versions.M38()
when:
def output = moodleVersion.defaultBranch
then:
assert output == "MOODLE_38_STABLE"
}
def "getPhpVersions"() {
given:
def moodleVersion = new org.moodle.ci.versions.M38()
when:
def output = moodleVersion.getPhpVersions()
then:
assert output.sort() == ['7.1', '7.2', '7.3'].sort()
}
def "getHighestSupportedVersion is 7.3"() {
given:
def moodleVersion = new org.moodle.ci.versions.M38()
when:
def output = moodleVersion.getHighestSupportedVersion()
then:
assert output == '7.3'
}
def "getLowestSupportedVersion is 7.1"() {
given:
def moodleVersion = new org.moodle.ci.versions.M38()
when:
def output = moodleVersion.getLowestSupportedVersion()
then:
assert output == '7.1'
}
def "getDatabases"() {
given:
def moodleVersion = new org.moodle.ci.versions.M38()
when:
def output = moodleVersion.getDatabases()
then:
assert output.sort() == [
"mariadb",
"mysqli",
"oci",
"pgsql",
"sqlsrv",
].sort()
}
def "name matches"() {
given:
def moodleVersion = new org.moodle.ci.versions.M38()
when:
def output = moodleVersion.name
then:
assert output == "38"
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment