Skip to content

Commit 2690611

Browse files
committed
Add the libonig5 to the Travis packages to install
For some strange reason, travis has started to fail with PHP 8.2 with error: php: error while loading shared libraries: libonig.so.5 It was not happening few days ago. Searching out there it seems that the fix is as simple as apt-installing that library. It's incredible that they don't have that implemented in their environments and things like this need to be installed manually. Any way, fixed in our own Travis test and also in the template and docs.
1 parent 10674c0 commit 2690611

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

.travis.dist.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ addons:
88
packages:
99
- postgresql-13
1010
- postgresql-client-13
11+
- libonig5
1112

1213
services:
1314
- mysql

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ addons:
88
packages:
99
- postgresql-13
1010
- postgresql-client-13
11+
- libonig5
1112

1213
services:
1314
- mysql

docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt
1111
## [Unreleased]
1212
### Changed
1313
- ACTION SUGGESTED: If you are using GitHub Actions, it's recomended to use `!cancelled()` instead of `always()` for moodle-plugin-ci tests. Adding a final step that always returns failure when the workflow is cancelled will ensure that cancelled workflows are not marked as successful. For a working example, please reference the updated `gha.dist.yml` file.
14+
- ACTION SUGGESTED: For some (unknown) reason, Travis environments with PHP 8.2 have started to fail with error:
15+
16+
```
17+
php: error while loading shared libraries: libonig.so.5
18+
```
19+
20+
To avoid that problem it's recommended to to add the `libonig5` package to the `travis.yml` file. For a working example, please reference the updated `.travis.dist.yml`file.
1421

1522
## [4.1.8] - 2023-10-20
1623
### Changed

docs/TravisFileExplained.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ addons:
2121
packages:
2222
- postgresql-13
2323
- postgresql-client-13
24+
- libonig5
2425

2526
# Ensure DB and docker services are running.
2627
services:

0 commit comments

Comments
 (0)