2016-08-18 13:05:55 +00:00
|
|
|
language: php
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
|
|
|
php:
|
2017-05-14 23:11:24 +00:00
|
|
|
- 5.6
|
|
|
|
- 7.0
|
|
|
|
|
|
|
|
addons:
|
|
|
|
postgresql: "9.3"
|
2016-08-18 13:05:55 +00:00
|
|
|
|
|
|
|
env:
|
2017-05-14 23:11:24 +00:00
|
|
|
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
|
2016-08-18 13:05:55 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2017-05-14 23:11:24 +00:00
|
|
|
# Test old Moodle in PHP 5.6 only
|
|
|
|
- php: 5.6
|
|
|
|
env: MOODLE_BRANCH=MOODLE_29_STABLE
|
|
|
|
# Test MySQL
|
2016-08-18 13:05:55 +00:00
|
|
|
- php: 7.0
|
|
|
|
env: DB=mysqli MOODLE_BRANCH=master
|
2017-05-14 23:11:24 +00:00
|
|
|
# Test PHP 7.1
|
|
|
|
- php: 7.1
|
|
|
|
env: MOODLE_BRANCH=master
|
2016-08-18 13:05:55 +00:00
|
|
|
|
|
|
|
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:
|
2017-05-14 23:11:24 +00:00
|
|
|
- moodle-plugin-ci install -vvv
|
2016-08-18 13:05:55 +00:00
|
|
|
|
|
|
|
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
|
2017-05-14 23:11:24 +00:00
|
|
|
- moodle-plugin-ci behat
|