forked from catalyst/moodle-tool_mfa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (54 loc) · 1.98 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
language: php
addons:
firefox: "47.0.1"
postgresql: "9.6"
services:
- mysql
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
dist: xenial
matrix:
include:
- php: 7.0
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE CORE_PATCH=core35.diff
- php: 7.0
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE CORE_PATCH=core35.diff
- php: 7.1
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE CORE_PATCH=core35.diff
- php: 7.1
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE CORE_PATCH=core35.diff
- php: 7.1
env: DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE CORE_PATCH=core36.diff
- php: 7.1
env: DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE CORE_PATCH=core36.diff
- php: 7.2
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE CORE_PATCH=core37.diff
- php: 7.2
env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE CORE_PATCH=core37.diff
- php: 7.2
env: DB=mysqli MOODLE_BRANCH=master
- php: 7.2
env: DB=pgsql MOODLE_BRANCH=master
before_install:
- phpenv config-rm xdebug.ini
- cd ../..
- composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3;
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
install:
- moodle-plugin-ci install -vvv
- if [ ! -z "$CORE_PATCH" ]; then (cd /home/travis/build/moodle; git apply admin/tool/mfa/patch/$CORE_PATCH); fi
script:
- moodle-plugin-ci phplint
- moodle-plugin-ci codechecker
- moodle-plugin-ci validate
- moodle-plugin-ci savepoints
- moodle-plugin-ci mustache
# Grunt currently fails due to ES6 transpilation
# - moodle-plugin-ci grunt
- moodle-plugin-ci phpunit -vvv
- moodle-plugin-ci behat
# Privacy Specific tests
- /home/travis/build/moodle/vendor/bin/phpunit "provider_testcase" /home/travis/build/moodle/privacy/tests/provider_test.php
- /home/travis/build/moodle/vendor/bin/phpunit "tool_dataprivacy_expired_contexts_testcase" /home/travis/build/moodle/admin/tool/dataprivacy/tests/expired_contexts_test.php