language: php cache: directories: - $HOME/.composer/cache php: - 5.6 - 7.0 addons: postgresql: "9.3" env: global: - DB=pgsql # There is not enough database usage to justify full check with mysqli too. matrix: - MOODLE_BRANCH=MOODLE_30_STABLE - MOODLE_BRANCH=MOODLE_31_STABLE - MOODLE_BRANCH=MOODLE_32_STABLE - MOODLE_BRANCH=MOODLE_33_STABLE - MOODLE_BRANCH=master matrix: include: # Test old Moodle in PHP 5.6 only - php: 5.6 env: MOODLE_BRANCH=MOODLE_29_STABLE # Test MySQL - php: 7.0 env: DB=mysqli MOODLE_BRANCH=master # Test PHP 7.1 - php: 7.1 env: MOODLE_BRANCH=master exclude: - php: 5.6 env: MOODLE_BRANCH=master before_install: - cd ../.. - composer selfupdate - composer create-project -n --no-dev moodlerooms/moodle-plugin-ci ci ^1 - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" install: - moodle-plugin-ci install -vvv script: - moodle-plugin-ci phplint - moodle-plugin-ci codechecker - moodle-plugin-ci validate - moodle-plugin-ci csslint - moodle-plugin-ci shifter - moodle-plugin-ci jshint - moodle-plugin-ci phpunit - moodle-plugin-ci behat