Update travis tests for Moodle 3.8

This commit is contained in:
Luuk Verhoeven
2019-11-14 15:53:37 +01:00
parent aba5912e50
commit 0468b49b6a

View File

@@ -1,58 +1,62 @@
language: php language: php
# Workaround for fixing that Selenium server is not running and therefore javascript Behat tests are not working:
# https://github.com/moodlerooms/moodle-plugin-ci/issues/70
sudo: required sudo: required
dist: trusty
addons: addons:
firefox: "47.0.1" hosts:
- moodle.test
firefox: "35.0.1"
postgresql: "9.4" postgresql: "9.4"
apt: apt:
packages: packages:
- openjdk-8-jre-headless - oracle-java9-installer
- oracle-java9-set-default
- redis-server
services:
- redis-server
cache: cache:
directories: directories:
- $HOME/.composer/cache - $HOME/.composer/cache
- $HOME/.npm - $HOME/.npm
php:
# PHP 5.6 gives errors because of the provider.php needs to be PHP7
- 7.2
env: env:
global: global:
- MOODLE_BRANCH=MOODLE_32_STABLE - IGNORE_PATHS=vendor,source
- MOODLE_BRANCH=MOODLE_35_STABLE - IGNORE_NAMES=*.txt,*.md
- MOODLE_BRANCH=MOODLE_36_STABLE
- MOODLE_BRANCH=MOODLE_37_STABLE
- MOODLE_BRANCH=master
matrix: # Alternate tests with MySQL and PostgreSQL
- DB=pgsql matrix:
- DB=mysqli include:
# PHP 7.0
- php: 7.0
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
- php: 7.2
env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
- php: 7.2
env: DB=pgsql MOODLE_BRANCH=master
before_install: before_install:
- phpenv config-rm xdebug.ini - phpenv config-rm xdebug.ini
- nvm install 8.9
- nvm use 8.9
- cd ../.. - cd ../..
- composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2 - nvm install 8.9;
nvm use 8.9;
composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2;
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
install: install:
- moodle-plugin-ci add-plugin moodlehq/moodle-local_moodlecheck - moodle-plugin-ci install -vvv
- moodle-plugin-ci install - echo '$CFG->cookiesecure = false;' >> moodle/config.php
script: script:
- php moodle/local/moodlecheck/cli/moodlecheck.php --path=availability/condition/ipaddress --format=text - moodle-plugin-ci validate
- moodle-plugin-ci phplint - moodle-plugin-ci phplint
- moodle-plugin-ci phpcpd - moodle-plugin-ci phpcpd
- moodle-plugin-ci phpmd - moodle-plugin-ci phpmd
- moodle-plugin-ci codechecker - moodle-plugin-ci codechecker
- moodle-plugin-ci validate
- moodle-plugin-ci savepoints - moodle-plugin-ci savepoints
- moodle-plugin-ci mustache - moodle-plugin-ci mustache
- moodle-plugin-ci grunt - moodle-plugin-ci grunt || false
- moodle-plugin-ci phpunit - moodle-plugin-ci phpunit
- moodle-plugin-ci behat - moodle-plugin-ci behat