Skip to content

Commit

Permalink
Attempt to get working under PHP 8.1
Browse files Browse the repository at this point in the history
- Removed lock file
- Updated test matrix
- Fixed tests to work on php 7.4, 8.0, 8.1

For reasons behind removing the lock file see:
https://islandora.slack.com/archives/CM5PPAV28/p1659631615201049
Islandora/documentation#1908 (Removal approved)

Instead we'll provide lock files in isle and ansible deployments.

Additionally moving to drop tests for 7.3 as it is no longer supported
by Drupal 9.4 and up.
  • Loading branch information
nigelgbanks committed Dec 13, 2022
1 parent 4dca22a commit 2ce7e85
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 33,467 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ["7.3", "7.4"]
php-versions: ["7.4"]

name: PHP ${{ matrix.php-versions }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-3.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ["7.3", "7.4"]
php-versions: ["7.4", "8.0", "8.1"]

name: PHP ${{ matrix.php-versions }}

Expand Down
16 changes: 9 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
vendor
config/settings.dev.yml
config/settings.yml
coverage.xml
.idea
.php_cs.cache
.phpunit
.phpunit.result.cache
*.key
*.lock
*.log
syn-settings.xml
*/cfg/config.yaml
clover.xml
.php_cs.cache
.phpunit.result.cache
config/settings.dev.yml
config/settings.yml
coverage.xml
syn-settings.xml
vendor
3 changes: 2 additions & 1 deletion .scripts/tester
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/sh

export SYMFONY_DEPRECATIONS_HELPER=disabled
FAIL=0
for D in */; do
cd $D
echo "Operating on $D"
composer test
if [ $? -ne 0 ]; then
FAIL=1
exit 1
fi
cd ..
done
Expand Down
1 change: 0 additions & 1 deletion Homarus/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"type": "project",
"license": "MIT",
"require": {
"php": "^7.3 || ^7.4",
"ext-ctype": "*",
"ext-iconv": "*",
"islandora/crayfish-commons": "^3.0",
Expand Down
Loading

0 comments on commit 2ce7e85

Please sign in to comment.