Skip to content

Commit 5c4cff1

Browse files
authored
Merge pull request #68 from learnweb/travis/m310
Travis: Update for Moodle 3.10
2 parents 5990883 + 1cc23b1 commit 5c4cff1

File tree

4 files changed

+13
-17
lines changed

4 files changed

+13
-17
lines changed

.travis.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ os: linux
33
dist: xenial
44

55
addons:
6-
firefox: "47.0.1"
76
postgresql: "9.6"
87

9-
services: mysql
8+
services:
9+
- mysql
10+
- docker
1011

1112
cache:
1213
directories:
@@ -24,22 +25,21 @@ env:
2425
- MUSTACHE_IGNORE_NAMES="email_html_body.mustache, email_html.mustache, email_text.mustache"
2526
jobs:
2627
- DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
27-
- DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
2828
- DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE
2929
- DB=pgsql MOODLE_BRANCH=MOODLE_39_STABLE
30+
- DB=pgsql MOODLE_BRANCH=MOODLE_310_STABLE
3031
- DB=pgsql MOODLE_BRANCH=master
3132
- DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
32-
- DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
3333
- DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE
3434
- DB=mysqli MOODLE_BRANCH=MOODLE_39_STABLE
35+
- DB=mysqli MOODLE_BRANCH=MOODLE_310_STABLE
3536
- DB=mysqli MOODLE_BRANCH=master
3637

3738
before_install:
3839
- phpenv config-rm xdebug.ini
39-
- nvm install v14
4040
- cd ../..
4141
- composer selfupdate
42-
- composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci dev-master
42+
- composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
4343
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
4444

4545
jobs:
@@ -48,7 +48,7 @@ jobs:
4848
# Prechecks against latest Moodle stable only.
4949
- stage: static
5050
php: 7.4
51-
env: DB=mysqli MOODLE_BRANCH=MOODLE_39_STABLE
51+
env: DB=mysqli MOODLE_BRANCH=MOODLE_310_STABLE
5252
install:
5353
- moodle-plugin-ci install --no-init
5454
script:
@@ -63,7 +63,7 @@ jobs:
6363
# Smaller build matrix for development builds
6464
- stage: develop
6565
php: 7.4
66-
env: DB=mysqli MOODLE_BRANCH=MOODLE_39_STABLE
66+
env: DB=mysqli MOODLE_BRANCH=MOODLE_310_STABLE
6767
exclude:
6868
- php: 7.3
6969
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
@@ -73,10 +73,6 @@ jobs:
7373
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
7474
- php: 7.4
7575
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
79-
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
8076

8177
# Default 'test' stage: Unit tests and behat tests against full matrix.
8278
install:

tests/locallib_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
*/
3535
class mod_moodleoverflow_locallib_testcase extends advanced_testcase {
3636

37-
public function setUp() {
37+
public function setUp(): void {
3838
\mod_moodleoverflow\subscriptions::reset_moodleoverflow_cache();
3939
}
4040

41-
public function tearDown() {
41+
public function tearDown(): void {
4242
\mod_moodleoverflow\subscriptions::reset_moodleoverflow_cache();
4343
}
4444

tests/privacy_provider_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class mod_moodleoverflow_privacy_provider_testcase extends \core_privacy\tests\p
4545
/**
4646
* Test setUp.
4747
*/
48-
public function setUp() {
48+
public function setUp(): void {
4949
$this->resetAfterTest(true);
5050
$this->generator = $this->getDataGenerator()->get_plugin_generator('mod_moodleoverflow');
5151
}

tests/subscriptions_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class mod_moodleoverflow_subscriptions_testcase extends advanced_testcase {
3939
/**
4040
* Test setUp.
4141
*/
42-
public function setUp() {
42+
public function setUp(): void {
4343
// Clear all caches.
4444
\mod_moodleoverflow\subscriptions::reset_moodleoverflow_cache();
4545
\mod_moodleoverflow\subscriptions::reset_discussion_cache();
@@ -48,7 +48,7 @@ public function setUp() {
4848
/**
4949
* Test tearDown.
5050
*/
51-
public function tearDown() {
51+
public function tearDown(): void {
5252
// Clear all caches.
5353
\mod_moodleoverflow\subscriptions::reset_moodleoverflow_cache();
5454
\mod_moodleoverflow\subscriptions::reset_discussion_cache();

0 commit comments

Comments
 (0)