forked from michael-milette/moodle-tool_filterlog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
152 lines (140 loc) · 6.83 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# Commands you want to run that will verify your build.
script: phpunit
# allow_failures: Allow this build to fail under the specified environments.
# fast_finish: If your build fails do not continue trying to build, just stop.
matrix:
# allow_failures:
# - php: 7.0
# - php: 7.1
# - php: 7.2
# - php: 7.3
# - php: 7.4
fast_finish: true
# Customize when the notification emails are sent.
notifications:
on_success: never
on_failure: always
# Required to run your project under the correct environment.
language: php
addons:
firefox: "47.0.1"
services:
- mysql
- postgresql
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
# Versions of PHP you want your project run with.
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
env:
- MOODLE_BRANCH=master DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- MOODLE_BRANCH=master DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- MOODLE_BRANCH=MOODLE_38_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- MOODLE_BRANCH=MOODLE_37_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- MOODLE_BRANCH=MOODLE_35_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- MOODLE_BRANCH=MOODLE_32_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
matrix:
exclude:
- php: 7.4
env: MOODLE_BRANCH=MOODLE_37_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.4
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.4
env: MOODLE_BRANCH=MOODLE_35_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.4
env: MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.4
env: MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.4
env: MOODLE_BRANCH=MOODLE_32_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.3
env: MOODLE_BRANCH=master DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.3
env: MOODLE_BRANCH=master DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.3
env: MOODLE_BRANCH=MOODLE_38_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.3
env: MOODLE_BRANCH=MOODLE_35_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.3
env: MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.3
env: MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.3
env: MOODLE_BRANCH=MOODLE_32_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.2
env: MOODLE_BRANCH=MOODLE_38_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.2
env: MOODLE_BRANCH=MOODLE_37_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.2
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.2
env: MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.2
env: MOODLE_BRANCH=MOODLE_32_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.1
env: MOODLE_BRANCH=master DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.1
env: MOODLE_BRANCH=master DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.1
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.1
env: MOODLE_BRANCH=MOODLE_35_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.1
env: MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.0
env: MOODLE_BRANCH=master DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.0
env: MOODLE_BRANCH=master DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.0
env: MOODLE_BRANCH=MOODLE_38_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.0
env: MOODLE_BRANCH=MOODLE_37_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.0
env: MOODLE_BRANCH=MOODLE_33_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 7.0
env: MOODLE_BRANCH=MOODLE_32_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 5.6
env: MOODLE_BRANCH=master DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 5.6
env: MOODLE_BRANCH=master DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 5.6
env: MOODLE_BRANCH=MOODLE_38_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 5.6
env: MOODLE_BRANCH=MOODLE_37_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 5.6
env: MOODLE_BRANCH=MOODLE_36_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 5.6
env: MOODLE_BRANCH=MOODLE_35_STABLE DB=mysqli IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
- php: 5.6
env: MOODLE_BRANCH=MOODLE_34_STABLE DB=pgsql IGNORE_PATHS=moodle/tests/fixtures,moodle/Sniffs BEHAT=yes
before_install:
# Get rid of the || return 0 once we switch to 7.4 with xdebug installed.
- phpenv config-rm xdebug.ini || return 0
- nvm install 8.9
- nvm use 8.9
- 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"
install:
- moodle-plugin-ci install
script:
- 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 grunt
- moodle-plugin-ci phpunit
- if [ $BEHAT == 'yes' ]; then
moodle-plugin-ci behat || travis_terminate 1;
fi