forked from IITBombayWeb/moodle-quiz_downloadsubmissions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
120 lines (105 loc) · 3.16 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
language: php
os: linux
addons:
firefox: "47.0.1"
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
- $HOME/.nvm
before_install:
- phpenv config-rm xdebug.ini
- if [ -z $NODE ]; then
export NODE=14;
fi
- nvm install $NODE
- nvm use $NODE
- cd ../..
- composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
- export IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs
- export BEHAT=yes
install:
- moodle-plugin-ci install
services:
- mysql
- postgresql
jobs:
include:
- php: 7.4
env: MOODLE_BRANCH=master DB=pgsql
- php: 7.4
env: MOODLE_BRANCH=master DB=mysqli
- php: 7.4
env: MOODLE_BRANCH=MOODLE_38_STABLE DB=pgsql
- php: 7.4
env: MOODLE_BRANCH=MOODLE_38_STABLE DB=mysqli
- php: 7.3
env: MOODLE_BRANCH=master DB=pgsql
- php: 7.3
env: MOODLE_BRANCH=master DB=mysqli
- php: 7.3
env: MOODLE_BRANCH=MOODLE_38_STABLE DB=pgsql
- php: 7.3
env: MOODLE_BRANCH=MOODLE_38_STABLE DB=mysqli
- php: 7.3
env: MOODLE_BRANCH=MOODLE_37_STABLE DB=pgsql
- php: 7.3
env: MOODLE_BRANCH=MOODLE_37_STABLE DB=mysqli
- php: 7.3
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql NODE=8
- php: 7.3
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=mysqli NODE=8
- php: 7.2
env: MOODLE_BRANCH=master DB=pgsql
- php: 7.2
env: MOODLE_BRANCH=master DB=mysqli
- php: 7.2
env: MOODLE_BRANCH=MOODLE_38_STABLE DB=pgsql
- php: 7.2
env: MOODLE_BRANCH=MOODLE_38_STABLE DB=mysqli
- php: 7.2
env: MOODLE_BRANCH=MOODLE_37_STABLE DB=pgsql
- php: 7.2
env: MOODLE_BRANCH=MOODLE_37_STABLE DB=mysqli
- php: 7.2
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql NODE=8
- php: 7.2
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=mysqli NODE=8
- php: 7.1
env: MOODLE_BRANCH=MOODLE_37_STABLE DB=pgsql
- php: 7.1
env: MOODLE_BRANCH=MOODLE_37_STABLE DB=mysqli
- php: 7.1
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql NODE=8
- php: 7.1
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=mysqli NODE=8
- php: 7.0
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql NODE=8
- php: 7.0
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=mysqli NODE=8
- php: 7.0
env: MOODLE_BRANCH=MOODLE_35_STABLE DB=pgsql
- php: 7.0
env: MOODLE_BRANCH=MOODLE_35_STABLE DB=mysqli
- php: 7.0
env: MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql NODE=8
- php: 7.0
env: MOODLE_BRANCH=MOODLE_34_STABLE DB=mysqli NODE=8
- php: 5.6
env: MOODLE_BRANCH=MOODLE_33_STABLE DB=pgsql NODE=8
- php: 5.6
env: MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli NODE=8
script:
- moodle-plugin-ci phplint
- moodle-plugin-ci phpcpd || true
- moodle-plugin-ci phpmd
- moodle-plugin-ci codechecker || true
- moodle-plugin-ci validate
- moodle-plugin-ci savepoints
- moodle-plugin-ci mustache
- moodle-plugin-ci grunt || true
- moodle-plugin-ci phpunit
- if [ $BEHAT == 'yes' ]; then
moodle-plugin-ci behat || travis_terminate 1;
fi