Skip to content

Commit 2dfbd7c

Browse files
authored
Merge pull request #13 from justusdieckmann/travis/moodle39
Tested against Moodle 3.9
2 parents 3c10d07 + 0273b0c commit 2dfbd7c

File tree

1 file changed

+52
-63
lines changed

1 file changed

+52
-63
lines changed

.travis.yml

Lines changed: 52 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,83 @@
11
language: php
2-
3-
sudo: false
4-
dist: trusty
2+
os: linux
3+
dist: xenial
54

65
cache:
76
directories:
87
- $HOME/.composer/cache
98
- $HOME/.npm
109

11-
php:
12-
- 7.0
13-
- 7.1
14-
- 7.3
15-
1610
addons:
17-
postgresql: 9.4
11+
postgresql: "9.5"
1812

19-
matrix:
20-
#allow_failures:
21-
# - env: DB=pgsql MOODLE_BRANCH=master
22-
# - env: DB=mysqli MOODLE_BRANCH=master
23-
exclude:
24-
- php: 7.3
25-
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
26-
- php: 7.3
27-
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
28-
- php: 7.0
29-
env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
30-
- php: 7.0
31-
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
32-
- php: 7.0
33-
env: DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE
34-
- php: 7.0
35-
env: DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE
36-
- php: 7.0
37-
env: DB=pgsql MOODLE_BRANCH=master
38-
- php: 7.0
39-
env: DB=mysqli MOODLE_BRANCH=master
40-
fast_finish: true
13+
services:
14+
- mysql
15+
16+
php:
17+
- 7.2
18+
- 7.3
19+
- 7.4
4120

4221
env:
43-
global:
44-
- IGNORE_PATHS=amd/build
45-
matrix:
46-
- DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
47-
- DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE
48-
- DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
49-
- DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE
50-
- DB=pgsql MOODLE_BRANCH=master
51-
- DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
52-
- DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE
53-
- DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
54-
- DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE
55-
- DB=mysqli MOODLE_BRANCH=master
22+
global:
23+
- IGNORE_PATHS=amd/build
24+
jobs:
25+
- DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
26+
- DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
27+
- DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE
28+
- DB=pgsql MOODLE_BRANCH=MOODLE_39_STABLE
29+
- DB=pgsql MOODLE_BRANCH=master
30+
- DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
31+
- DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
32+
- DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE
33+
- DB=mysqli MOODLE_BRANCH=MOODLE_39_STABLE
34+
- DB=mysqli MOODLE_BRANCH=master
5635

5736
before_install:
5837
- phpenv config-rm xdebug.ini
59-
- nvm install v8.9.4
38+
- nvm install v14
6039
- cd ../..
6140
- composer selfupdate
62-
- composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2
41+
- composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci dev-master
6342
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
6443

6544
install:
6645
- moodle-plugin-ci install
6746

6847
jobs:
48+
fast_finish: true
6949
include:
7050
# Prechecks against latest Moodle stable only.
7151
- stage: static
72-
php: 7.3
73-
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
52+
php: 7.4
53+
env: DB=mysqli MOODLE_BRANCH=MOODLE_39_STABLE
54+
install: moodle-plugin-ci install --no-init
7455
script:
75-
- moodle-plugin-ci phplint
76-
- moodle-plugin-ci phpcpd
77-
- moodle-plugin-ci phpmd
78-
- moodle-plugin-ci codechecker
79-
- moodle-plugin-ci savepoints
80-
- moodle-plugin-ci mustache
81-
- moodle-plugin-ci grunt
82-
- moodle-plugin-ci validate
56+
- moodle-plugin-ci phplint
57+
- moodle-plugin-ci phpcpd
58+
- moodle-plugin-ci phpmd
59+
- moodle-plugin-ci codechecker
60+
- moodle-plugin-ci savepoints
61+
- moodle-plugin-ci mustache
62+
- moodle-plugin-ci grunt
63+
- moodle-plugin-ci validate
8364
# Smaller build matrix for development builds
8465
- stage: develop
85-
php: 7.3
86-
env: DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE
87-
install:
88-
- moodle-plugin-ci install
89-
script:
90-
- moodle-plugin-ci phpunit --coverage-clover
91-
- moodle-plugin-ci behat
66+
php: 7.4
67+
env: DB=mysqli MOODLE_BRANCH=MOODLE_39_STABLE
68+
exclude:
69+
- php: 7.3
70+
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
71+
- php: 7.3
72+
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
73+
- php: 7.4
74+
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
75+
- php: 7.4
76+
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
77+
- php: 7.4
78+
env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
79+
- php: 7.4
80+
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
9281

9382
# Default 'test' stage: Unit tests and behat tests against full matrix.
9483
script:

0 commit comments

Comments
 (0)