|
1 | 1 | language: php |
2 | | - |
3 | | -sudo: false |
4 | | -dist: trusty |
| 2 | +os: linux |
| 3 | +dist: xenial |
5 | 4 |
|
6 | 5 | addons: |
7 | 6 | firefox: "47.0.1" |
8 | | - postgresql: "9.4" |
9 | | - apt: |
10 | | - packages: |
11 | | - - oracle-java9-installer |
12 | | - - oracle-java9-set-default |
| 7 | + postgresql: "9.5" |
| 8 | + |
| 9 | +services: mysql |
13 | 10 |
|
14 | 11 | cache: |
15 | 12 | directories: |
16 | 13 | - $HOME/.composer/cache |
17 | 14 | - $HOME/.npm |
18 | 15 |
|
19 | 16 | php: |
20 | | - - 7.0 |
21 | | - - 7.1 |
22 | | - - 7.3 |
23 | | - |
24 | | -matrix: |
25 | | - exclude: |
26 | | - - php: 7.0 |
27 | | - env: DB=pgsql MOODLE_BRANCH=master |
28 | | - - php: 7.0 |
29 | | - env: DB=mysqli MOODLE_BRANCH=master |
30 | | - - php: 7.0 |
31 | | - env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE |
32 | | - - php: 7.0 |
33 | | - env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE |
34 | | - - php: 7.0 |
35 | | - env: DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE |
36 | | - - php: 7.0 |
37 | | - env: DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE |
38 | | - - php: 7.3 |
39 | | - env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE |
40 | | - - php: 7.3 |
41 | | - env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE |
42 | | - fast_finish: true |
| 17 | + - 7.2 |
| 18 | + - 7.3 |
| 19 | + - 7.4 |
43 | 20 |
|
44 | 21 | env: |
45 | | - global: |
46 | | - - BEHAT=yes |
47 | | - - MUSTACHE_IGNORE_NAMES="email_html_body.mustache, email_html.mustache, email_text.mustache" |
48 | | - matrix: |
49 | | - - DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE |
50 | | - - DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE |
51 | | - - DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE |
52 | | - - DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE |
53 | | - - DB=pgsql MOODLE_BRANCH=master |
54 | | - - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE |
55 | | - - DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE |
56 | | - - DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE |
57 | | - - DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE |
58 | | - - DB=mysqli MOODLE_BRANCH=master |
| 22 | + global: |
| 23 | + - BEHAT=yes |
| 24 | + - MUSTACHE_IGNORE_NAMES="email_html_body.mustache, email_html.mustache, email_text.mustache" |
| 25 | + jobs: |
| 26 | + - DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE |
| 27 | + - DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE |
| 28 | + - DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE |
| 29 | + - DB=pgsql MOODLE_BRANCH=MOODLE_39_STABLE |
| 30 | + - DB=pgsql MOODLE_BRANCH=master |
| 31 | + - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE |
| 32 | + - DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE |
| 33 | + - DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE |
| 34 | + - DB=mysqli MOODLE_BRANCH=MOODLE_39_STABLE |
| 35 | + - DB=mysqli MOODLE_BRANCH=master |
59 | 36 |
|
60 | 37 | before_install: |
61 | 38 | - phpenv config-rm xdebug.ini |
62 | | - - nvm install v8.9.4 |
| 39 | + - nvm install v14 |
63 | 40 | - cd ../.. |
64 | 41 | - composer selfupdate |
65 | | - - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2 |
| 42 | + - composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci dev-master |
66 | 43 | - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" |
67 | 44 |
|
68 | 45 | jobs: |
| 46 | + fast_finish: true |
69 | 47 | include: |
70 | 48 | # Prechecks against latest Moodle stable only. |
71 | 49 | - stage: static |
72 | | - php: 7.3 |
73 | | - env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE |
| 50 | + php: 7.4 |
| 51 | + env: DB=mysqli MOODLE_BRANCH=MOODLE_39_STABLE |
74 | 52 | install: |
75 | | - - moodle-plugin-ci install --no-init |
| 53 | + - moodle-plugin-ci install --no-init |
76 | 54 | script: |
77 | | - - moodle-plugin-ci phplint |
78 | | - - moodle-plugin-ci phpcpd |
79 | | - - moodle-plugin-ci phpmd |
80 | | - - moodle-plugin-ci codechecker |
81 | | - - moodle-plugin-ci validate |
82 | | - - moodle-plugin-ci savepoints |
83 | | - - moodle-plugin-ci mustache |
84 | | - - moodle-plugin-ci grunt || [ "$MOODLE_BRANCH" = 'master' ] |
85 | | - |
| 55 | + - moodle-plugin-ci phplint |
| 56 | + - moodle-plugin-ci phpcpd |
| 57 | + - moodle-plugin-ci phpmd |
| 58 | + - moodle-plugin-ci codechecker |
| 59 | + - moodle-plugin-ci validate |
| 60 | + - moodle-plugin-ci savepoints |
| 61 | + - moodle-plugin-ci mustache |
| 62 | + - moodle-plugin-ci grunt |
86 | 63 | # Smaller build matrix for development builds |
87 | 64 | - stage: develop |
88 | | - php: 7.3 |
| 65 | + php: 7.4 |
| 66 | + env: DB=mysqli MOODLE_BRANCH=MOODLE_39_STABLE |
| 67 | + exclude: |
| 68 | + - php: 7.3 |
| 69 | + env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE |
| 70 | + - php: 7.3 |
| 71 | + env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE |
| 72 | + - php: 7.4 |
| 73 | + env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE |
| 74 | + - php: 7.4 |
| 75 | + env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE |
| 76 | + - php: 7.4 |
| 77 | + env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE |
| 78 | + - php: 7.4 |
89 | 79 | env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE |
90 | | - install: |
91 | | - - moodle-plugin-ci install |
92 | | - script: |
93 | | - - moodle-plugin-ci phpunit --coverage-clover |
94 | | - - moodle-plugin-ci behat |
95 | 80 |
|
96 | 81 | # Default 'test' stage: Unit tests and behat tests against full matrix. |
97 | 82 | install: |
98 | 83 | - moodle-plugin-ci install |
99 | | - |
100 | 84 | script: |
101 | 85 | - moodle-plugin-ci phpunit --coverage-clover |
102 | 86 | - moodle-plugin-ci behat |
|
0 commit comments