2018-11-01 16:50:10 +00:00
|
|
|
language: php
|
|
|
|
|
2019-01-17 16:51:22 +00:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
- $HOME/.npm
|
2018-11-01 16:50:10 +00:00
|
|
|
|
|
|
|
addons:
|
2019-01-17 16:51:22 +00:00
|
|
|
postgresql: "9.6"
|
2018-11-01 16:50:10 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
2019-01-17 16:51:22 +00:00
|
|
|
- mysql-server-5.6
|
|
|
|
- mysql-client-core-5.6
|
|
|
|
- mysql-client-5.6
|
2018-11-01 16:50:10 +00:00
|
|
|
|
|
|
|
php:
|
2019-01-17 16:51:22 +00:00
|
|
|
- 7.0
|
|
|
|
- 7.1
|
2018-11-01 16:50:10 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
2019-01-17 16:51:22 +00:00
|
|
|
- DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE
|
|
|
|
- DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
|
|
|
|
- DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE
|
|
|
|
- DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE
|
|
|
|
- DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
|
|
|
|
- DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- php: 5.6
|
|
|
|
env: DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE
|
|
|
|
- php: 5.6
|
|
|
|
env: DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
|
2018-11-01 16:50:10 +00:00
|
|
|
|
|
|
|
before_install:
|
2019-01-17 16:51:22 +00:00
|
|
|
- phpenv config-rm xdebug.ini
|
|
|
|
- nvm install 8.9
|
|
|
|
- nvm use 8.9
|
|
|
|
- cd ../..
|
|
|
|
- composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2
|
|
|
|
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
|
2018-11-01 16:50:10 +00:00
|
|
|
|
|
|
|
install:
|
2019-01-17 16:51:22 +00:00
|
|
|
- moodle-plugin-ci install
|
2018-11-01 16:50:10 +00:00
|
|
|
|
|
|
|
script:
|
2019-01-17 16:51:22 +00:00
|
|
|
- moodle-plugin-ci phplint
|
|
|
|
- moodle-plugin-ci phpcpd
|
|
|
|
- moodle-plugin-ci phpmd
|
|
|
|
- moodle-plugin-ci codechecker
|
|
|
|
- moodle-plugin-ci validate
|
|
|
|
- moodle-plugin-ci savepoints
|
|
|
|
- moodle-plugin-ci mustache
|
|
|
|
- moodle-plugin-ci grunt
|
|
|
|
- moodle-plugin-ci phpunit
|
|
|
|
- moodle-plugin-ci behat
|