Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump highest php version to 8.0 for 311 and master #145

Merged
merged 1 commit into from
May 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,31 @@ jobs:
fail-fast: false
matrix:
include:
- php: 7.4
- php: 8.0
moodle-branch: master
database: pgsql
- php: 7.4
# The following line is only needed if you're going to run php8 jobs and your
# plugin needs xmlrpc services.
extensions: xmlrpc-beta
- php: 8.0
moodle-branch: master
database: mariadb
- php: 7.4
# The following line is only needed if you're going to run php8 jobs and your
# plugin needs xmlrpc services.
extensions: xmlrpc-beta
- php: 8.0
moodle-branch: MOODLE_311_STABLE
database: pgsql
- php: 7.4
# The following line is only needed if you're going to run php8 jobs and your
# plugin needs xmlrpc services.
extensions: xmlrpc-beta
- php: 8.0
moodle-branch: MOODLE_311_STABLE
database: mariadb
# The following line is only needed if you're going to run php8 jobs and your
# plugin needs xmlrpc services.
extensions: xmlrpc-beta

- php: 7.4
moodle-branch: MOODLE_310_STABLE
database: pgsql
Expand Down Expand Up @@ -88,6 +101,8 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.extensions }}
ini-values: max_input_vars=5000
coverage: none

- name: Initialise moodle-plugin-ci
Expand Down
23 changes: 15 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ cache:

jobs:
include:
- php: 7.4
- php: 8.0
env: MOODLE_BRANCH=master DB=pgsql
- php: 7.4
- php: 8.0
env: MOODLE_BRANCH=master DB=mysqli
- php: 7.4
- php: 8.0
env: MOODLE_BRANCH=MOODLE_311_STABLE DB=pgsql
- php: 7.4
- php: 8.0
env: MOODLE_BRANCH=MOODLE_311_STABLE DB=mysqli

- php: 7.4
env: MOODLE_BRANCH=MOODLE_310_STABLE DB=pgsql
- php: 7.4
Expand Down Expand Up @@ -60,6 +61,10 @@ jobs:
# be executed with that PHP versions.

before_install:
# The following line is only needed if you're going to run php8 jobs and your
# plugin needs xmlrpc services.
- if [[ ${TRAVIS_PHP_VERSION:0:1} -gt 7 ]]; then pecl install xmlrpc-beta; fi
- echo 'max_input_vars=5000' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini
- cd ../..
- composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
Expand All @@ -74,17 +79,19 @@ before_install:
fi

install:
- moodle-plugin-ci install
# Let's keep phpunit and behat jobs not inited and disabled below until MDL-71622 is sorted out.
# (note that, in the mean time GHA will still be running them, so we are covered)
- moodle-plugin-ci install --no-init

script:
- moodle-plugin-ci phplint
- moodle-plugin-ci phpcpd
- moodle-plugin-ci phpmd
- moodle-plugin-ci codechecker
- moodle-plugin-ci phpdoc
- moodle-plugin-ci validate
- moodle-plugin-ci savepoints
- moodle-plugin-ci mustache
- moodle-plugin-ci grunt
- moodle-plugin-ci phpdoc
- moodle-plugin-ci phpunit
- moodle-plugin-ci behat
# - moodle-plugin-ci phpunit
# - moodle-plugin-ci behat