ci: test Moodle 4.5 LTS
This commit is contained in:
+24
-2
@@ -11,8 +11,8 @@ x-ci: &ci
|
||||
composer --version
|
||||
node --version
|
||||
moodle-plugin-ci --version
|
||||
moodle-plugin-ci install --plugin /plugin --branch v5.2.2 --db-host "$$DB_HOST"
|
||||
test "$$(git -C /workspace/moodle rev-parse HEAD)" = "acfa383c13dd46c83ca82894a8e95fac273fda33"
|
||||
moodle-plugin-ci install --plugin /plugin --branch "$$MOODLE_BRANCH" --db-host "$$DB_HOST"
|
||||
test "$$(git -C /workspace/moodle rev-parse HEAD)" = "$$MOODLE_COMMIT"
|
||||
moodle-plugin-ci phplint
|
||||
moodle-plugin-ci phpcs --max-warnings 0
|
||||
moodle-plugin-ci phpdoc --max-warnings 0
|
||||
@@ -58,6 +58,7 @@ services:
|
||||
DB_HOST: postgres
|
||||
DB_USER: postgres
|
||||
MOODLE_BRANCH: v5.2.2
|
||||
MOODLE_COMMIT: acfa383c13dd46c83ca82894a8e95fac273fda33
|
||||
NPM_CONFIG_FETCH_RETRIES: 5
|
||||
|
||||
ci-mysql:
|
||||
@@ -73,4 +74,25 @@ services:
|
||||
DB_PASS: moodle_ci
|
||||
DB_USER: root
|
||||
MOODLE_BRANCH: v5.2.2
|
||||
MOODLE_COMMIT: acfa383c13dd46c83ca82894a8e95fac273fda33
|
||||
NPM_CONFIG_FETCH_RETRIES: 5
|
||||
|
||||
ci-moodle45:
|
||||
<<: *ci
|
||||
profiles:
|
||||
- moodle45
|
||||
build:
|
||||
context: .
|
||||
dockerfile: .docker/ci/Dockerfile
|
||||
args:
|
||||
PHP_IMAGE: moodlehq/moodle-php-apache:8.1@sha256:13be2641be8883e79fd1e97374d0df759d80c81cce8331f3e85035923b7f4576
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
DB: pgsql
|
||||
DB_HOST: postgres
|
||||
DB_USER: postgres
|
||||
MOODLE_BRANCH: v4.5.13
|
||||
MOODLE_COMMIT: 8cbae18a2898cfd8266ec91ac206e12004f0ff5f
|
||||
NPM_CONFIG_FETCH_RETRIES: 5
|
||||
|
||||
Reference in New Issue
Block a user