2017-02-16 12:12:19 +00:00
|
|
|
language: php
|
|
|
|
|
2020-11-27 09:10:11 +00:00
|
|
|
# For javascript behat tests we need sudo.
|
2018-10-30 13:52:10 +00:00
|
|
|
sudo: true
|
2017-02-16 12:12:19 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
2018-10-30 13:52:10 +00:00
|
|
|
- $HOME/.npm
|
2017-02-16 12:12:19 +00:00
|
|
|
|
|
|
|
php:
|
2020-11-27 09:10:11 +00:00
|
|
|
- 7.2
|
|
|
|
- 7.4
|
2017-02-16 12:12:19 +00:00
|
|
|
|
2017-05-21 03:09:08 +00:00
|
|
|
addons:
|
2020-11-27 09:10:11 +00:00
|
|
|
firefox: 47.0.1
|
|
|
|
postgresql: "9.6"
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- openjdk-8-jre-headless
|
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- postgresql
|
2017-05-21 03:09:08 +00:00
|
|
|
|
2017-02-16 12:12:19 +00:00
|
|
|
env:
|
2020-11-27 09:10:11 +00:00
|
|
|
global:
|
|
|
|
- MOODLE_BRANCH=MOODLE_39_STABLE
|
|
|
|
- IGNORE_NAMES=mobile_*.mustache # Mobile mustache has specific syntax, ignore their templates
|
|
|
|
matrix:
|
|
|
|
- DB=pgsql
|
|
|
|
- DB=mysqli
|
2017-02-16 12:12:19 +00:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- phpenv config-rm xdebug.ini
|
|
|
|
- cd ../..
|
2020-11-09 14:32:31 +00:00
|
|
|
- composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
|
2017-02-16 12:12:19 +00:00
|
|
|
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
|
|
|
|
|
|
|
|
install:
|
|
|
|
- moodle-plugin-ci install
|
|
|
|
|
|
|
|
script:
|
|
|
|
- moodle-plugin-ci phplint
|
2018-10-30 13:52:10 +00:00
|
|
|
# - moodle-plugin-ci phpcpd # subplugins often have similar code and cause "duplicated code" errors
|
|
|
|
# - moodle-plugin-ci phpmd # too much noise from this check, maybe, some day...
|
2017-02-16 12:12:19 +00:00
|
|
|
- moodle-plugin-ci codechecker
|
|
|
|
- moodle-plugin-ci validate
|
2018-10-30 13:52:10 +00:00
|
|
|
- moodle-plugin-ci savepoints
|
|
|
|
- moodle-plugin-ci mustache
|
2020-11-27 09:10:11 +00:00
|
|
|
- moodle-plugin-ci grunt
|
|
|
|
# - moodle-plugin-ci phpdoc # Complains about missing PHPDocs when they exist in parent class.
|
2017-02-16 12:12:19 +00:00
|
|
|
- moodle-plugin-ci phpunit
|
|
|
|
- moodle-plugin-ci behat
|