moodle-auth_jwt/.travis.yml
Daniel Thee Roperto 596f2d72aa Issue #13 - Updated Travis and unit test.
- Added Moodle 32 and Moodle 33 to Travis.
- Updated Travis to not test mysql in every scenario
- Updated Travis to use Postgres 9.3 (required by Moodle 33+)
- Updated test_that_user_logged_in_and_redirected as newer Moodle defaults to different URL.
2017-05-15 11:52:08 +10:00

53 lines
1.1 KiB
YAML

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
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