Update .travis.yml

This commit is contained in:
Mark Nelson 2020-11-27 17:10:11 +08:00
parent 63160279f5
commit 26e72d770c

View file

@ -1,8 +1,7 @@
language: php language: php
# For javascript behat tests we need sudo # For javascript behat tests we need sudo.
sudo: true sudo: true
dist: trusty
cache: cache:
directories: directories:
@ -10,28 +9,30 @@ cache:
- $HOME/.npm - $HOME/.npm
php: php:
- 7.2 - 7.2
- 7.4 - 7.4
addons: addons:
firefox: 47.0.1 firefox: 47.0.1
postgresql: 9.5 postgresql: "9.6"
apt: apt:
packages: packages:
- openjdk-8-jre-headless - openjdk-8-jre-headless
services:
- mysql
- postgresql
env: env:
global: global:
- MOODLE_BRANCH=MOODLE_39_STABLE - MOODLE_BRANCH=MOODLE_39_STABLE
- IGNORE_NAMES=mobile_*.mustache # Mobile mustache has specific syntax, ignore their templates - IGNORE_NAMES=mobile_*.mustache # Mobile mustache has specific syntax, ignore their templates
matrix: matrix:
- DB=pgsql - DB=pgsql
- DB=mysqli - DB=mysqli
before_install: before_install:
- phpenv config-rm xdebug.ini - phpenv config-rm xdebug.ini
- nvm install 14.0
- nvm use 14.0
- cd ../.. - cd ../..
- composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3 - 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" - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
@ -47,6 +48,7 @@ script:
- moodle-plugin-ci validate - moodle-plugin-ci validate
- moodle-plugin-ci savepoints - moodle-plugin-ci savepoints
- moodle-plugin-ci mustache - 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 phpunit
- moodle-plugin-ci behat - moodle-plugin-ci behat