-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
131 lines (116 loc) · 3.7 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
notifications:
email: false
language: php
sudo: required
addons:
postgresql: "9.6"
services:
- postgresql
jobs:
# Enable fast finish.
# This will fail the build if a single job fails (except those in allow_failures).
# It will not stop the jobs from running.
fast_finish: true
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
php:
# - 7.0
- 7.1
# - 7.2
# - 7.3
- 7.4
env:
global:
- IGNORE_PATHS=classes/privacy,ignore,node_modules,integration,render
# - IGNORE_NAMES=ignore_name.php
# - MUSTACHE_IGNORE_NAMES=broken.mustache
# - PROFILE=chrome
- COVERAGE=false
- PHPUNIT_IGNORE_PATHS=classes/privacy,ignore,node_modules,integration,render
- DB=pgsql
matrix:
- MOODLE_BRANCH=MOODLE_311_STABLE
- MOODLE_BRANCH=MOODLE_310_STABLE
- MOODLE_BRANCH=MOODLE_39_STABLE
- MOODLE_BRANCH=MOODLE_38_STABLE
- MOODLE_BRANCH=MOODLE_37_STABLE
- MOODLE_BRANCH=MOODLE_36_STABLE
- MOODLE_BRANCH=MOODLE_35_STABLE
matrix:
exclude:
- php: 7.1
env: MOODLE_BRANCH=MOODLE_38_STABLE
- php: 7.1
env: MOODLE_BRANCH=MOODLE_39_STABLE
- php: 7.1
env: MOODLE_BRANCH=MOODLE_310_STABLE
- php: 7.1
env: MOODLE_BRANCH=MOODLE_311_STABLE
- php: 7.1
env: MOODLE_BRANCH=MOODLE_39_STABLE
- php: 7.1
env: MOODLE_BRANCH=MOODLE_310_STABLE
- php: 7.1
env: MOODLE_BRANCH=MOODLE_311_STABLE
- php: 7.4
env: MOODLE_BRANCH=MOODLE_35_STABLE
- php: 7.4
env: MOODLE_BRANCH=MOODLE_36_STABLE
- php: 7.4
env: MOODLE_BRANCH=MOODLE_37_STABLE
before_install:
- nvm install 14.15.0;
- nvm use 14.15.0;
- phpenv config-rm xdebug.ini
- cd ../..
- composer selfupdate
- 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 add-plugin wiris/moodle-filter_wiris
- moodle-plugin-ci add-plugin wiris/moodle-atto_wiris
- moodle-plugin-ci add-plugin --branch $TRAVIS_BRANCH wiris/moodle-qtype_wq
- moodle-plugin-ci add-plugin --branch $TRAVIS_BRANCH wiris/moodle-qtype_essaywiris
- moodle-plugin-ci add-plugin --branch $TRAVIS_BRANCH wiris/moodle-qtype_matchwiris
- moodle-plugin-ci add-plugin --branch $TRAVIS_BRANCH wiris/moodle-qtype_multianswerwiris
- moodle-plugin-ci add-plugin --branch $TRAVIS_BRANCH wiris/moodle-qtype_multichoicewiris
- moodle-plugin-ci add-plugin --branch $TRAVIS_BRANCH wiris/moodle-qtype_shortanswerwiris
- moodle-plugin-ci add-plugin --branch $TRAVIS_BRANCH wiris/moodle-qtype_truefalsewiris
- 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 mustache
# - moodle-plugin-ci shifter
# - moodle-plugin-ci validate
- moodle-plugin-ci grunt
# - if [ "$MOODLE_BRANCH" = MOODLE_35_STABLE ]; then
# moodle-plugin-ci grunt;
# fi
# - if [ "$MOODLE_BRANCH" = MOODLE_36_STABLE ]; then
# moodle-plugin-ci grunt;
# fi
# - if [ "$MOODLE_BRANCH" = MOODLE_37_STABLE ]; then
# moodle-plugin-ci grunt;
# fi
# - if [ "$MOODLE_BRANCH" = MOODLE_38_STABLE ]; then
# moodle-plugin-ci grunt -t eslint;
# fi
# - if [ "$MOODLE_BRANCH" = MOODLE_39_STABLE ]; then
# moodle-plugin-ci grunt -t eslint;
# fi
# - if [ "$MOODLE_BRANCH" = MOODLE_310_STABLE ]; then
# moodle-plugin-ci grunt -t eslint;
# fi
# - if [ "$MOODLE_BRANCH" = MOODLE_311_STABLE ]; then
# moodle-plugin-ci grunt -t eslint;
# fi
- moodle-plugin-ci phpunit
- moodle-plugin-ci behat
# - moodle-plugin-ci behat --profile $PROFILE