Skip to content

Commit 4c896a5

Browse files
committed
Document and explain the 4.1 requirement changes
And, more specifically, the changes needed for Travis, as explained in the previous commit.
1 parent 36164ba commit 4c896a5

File tree

5 files changed

+28
-6
lines changed

5 files changed

+28
-6
lines changed

.travis.dist.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
language: php
22

33
addons:
4-
postgresql: "10"
4+
postgresql: "12"
5+
apt:
6+
packages:
7+
- postgresql-12
8+
- postgresql-client-12
59

610
services:
711
- mysql
8-
- postgresql
912
- docker
1013

1114
cache:
@@ -20,6 +23,7 @@ php:
2023

2124
env:
2225
global:
26+
- PGVER=12
2327
- MOODLE_BRANCH=MOODLE_311_STABLE
2428
matrix:
2529
- DB=pgsql

docs/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt
1212
### Added
1313
- `moodle-plugin-ci install` now provides an option `--db-port` to define a custom database port.
1414

15+
### Changed
16+
- Updated [gha.dist.yml](https://github.com/moodlehq/moodle-plugin-ci/blob/master/gha.dist.yml) and
17+
[.travis.dist.yml](https://github.com/moodlehq/moodle-plugin-ci/blob/master/.travis.dist.yml)
18+
(and documentation) to fulfil [Moodle 4.1 new requirements](https://tracker.moodle.org/browse/MDL-71747).
19+
- ACTION REQUIRED: Review existing integrations running tests against master (4.1dev). There are a few Moodle 4.1 new requirements:
20+
- PHP 7.4 is required (instead of 7.3).
21+
- PostgreSQL 12 is required (instead of 10). Pay special attention to the changes needed for this and Travis!
22+
- MariaDB 10.4 is required (instead of 10.2.29).
23+
- Oracle 19 is required (instead of 11.2).
24+
1525
## [3.3.0] - 2022-06-28
1626
### Added
1727
- PHPUnit code coverage will now automatically fallback between `pcov` => `xdebug` => `phpdbg`, using the "best" one available in the system. Still, if needed to, any of them can be forced, given all their requirements are fulfilled, using the following new options of the 'phpunit' command: `--coverage-pcov`, `--coverage-xdebug` or `--coverage-phpdbg`.

docs/GHAFileExplained.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# DB services you need for testing.
3232
services:
3333
postgres:
34-
image: postgres:10
34+
image: postgres:12
3535
env:
3636
POSTGRES_USER: 'postgres'
3737
POSTGRES_HOST_AUTH_METHOD: 'trust'

docs/TravisFileExplained.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ language: php
1313

1414
# Installs the updated version of PostgreSQL and extra APT packages.
1515
addons:
16-
postgresql: "10"
16+
postgresql: "12"
17+
apt:
18+
packages:
19+
- postgresql-12
20+
- postgresql-client-12
1721

1822
# Ensure DB and docker services are running.
1923
services:
2024
- mysql
21-
- postgresql
2225
- docker
2326

2427
# Cache Composer's and NPM's caches to speed up build times.
@@ -38,6 +41,11 @@ php:
3841
# This section sets up the environment variables for the build.
3942
env:
4043
global:
44+
# This line instructs moodle-plugin-ci the version of PostgreSQL being
45+
# used, because, for PG 11 and up, both the user and the port were
46+
# changed by Travis. With that variable, the tool will switch to
47+
# socketed connections instead of localhost ones.
48+
- PGVER=12
4149
# This line determines which version branch of Moodle to test against.
4250
- MOODLE_BRANCH=MOODLE_311_STABLE
4351
# This matrix is used for testing against multiple databases. So for

gha.dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
services:
1010
postgres:
11-
image: postgres:10
11+
image: postgres:12
1212
env:
1313
POSTGRES_USER: 'postgres'
1414
POSTGRES_HOST_AUTH_METHOD: 'trust'

0 commit comments

Comments
 (0)