diff --git a/.travis.yml b/.travis.yml index 1d18d67..ee125a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,7 @@ language: php -# For javascript behat tests we need sudo +# For javascript behat tests we need sudo. sudo: true -dist: trusty cache: directories: @@ -10,28 +9,30 @@ cache: - $HOME/.npm php: - - 7.2 - - 7.4 + - 7.2 + - 7.4 addons: - firefox: 47.0.1 - postgresql: 9.5 - apt: - packages: - - openjdk-8-jre-headless + firefox: 47.0.1 + postgresql: "9.6" + apt: + packages: + - openjdk-8-jre-headless + +services: + - mysql + - postgresql env: - global: - - MOODLE_BRANCH=MOODLE_39_STABLE - - IGNORE_NAMES=mobile_*.mustache # Mobile mustache has specific syntax, ignore their templates - matrix: - - DB=pgsql - - DB=mysqli + global: + - MOODLE_BRANCH=MOODLE_39_STABLE + - IGNORE_NAMES=mobile_*.mustache # Mobile mustache has specific syntax, ignore their templates + matrix: + - DB=pgsql + - DB=mysqli before_install: - phpenv config-rm xdebug.ini - - nvm install 14.0 - - nvm use 14.0 - cd ../.. - composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3 - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" @@ -47,6 +48,7 @@ script: - moodle-plugin-ci validate - moodle-plugin-ci savepoints - moodle-plugin-ci mustache - - moodle-plugin-ci grunt -t stylelint:css -t js + - moodle-plugin-ci grunt + # - moodle-plugin-ci phpdoc # Complains about missing PHPDocs when they exist in parent class. - moodle-plugin-ci phpunit - moodle-plugin-ci behat